diff options
author | Matt Zuba <matt.zuba@goodwillaz.org> | 2011-12-21 10:30:38 -0700 |
---|---|---|
committer | Matt Zuba <matt.zuba@goodwillaz.org> | 2011-12-21 10:30:38 -0700 |
commit | b0d80a34ed35618a1a55da3d30a2757acbb50266 (patch) | |
tree | c256ec2f6a6aedb048200af9c7f0d6573300d339 /init.d | |
parent | 6a655c9488ca3e05f1c3099b4cc4137b10c27035 (diff) |
Debian/Ubuntu upstart script
--HG--
branch : beta
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/rhodecode-upstart.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/init.d/rhodecode-upstart.conf b/init.d/rhodecode-upstart.conf new file mode 100644 index 00000000..a47d59f9 --- /dev/null +++ b/init.d/rhodecode-upstart.conf @@ -0,0 +1,26 @@ +# rhodecode - run the rhodecode daemon as an upstart job +# Change variables/paths as necessary and place file /etc/init/rhodecode.conf +# start/stop/restart as normal upstart job (ie: $ start rhodecode) + +description "RhodeCode Mercurial Server" +author "Matt Zuba <matt.zuba@goodwillaz.org" + +start on (local-filesystems and runlevel [2345]) +stop on runlevel [!2345] + +respawn + +umask 0022 + +env PIDFILE=/var/hg/rhodecode/rhodecode.pid +env LOGFILE=/var/hg/rhodecode/log/rhodecode.log +env APPINI=/var/hg/rhodecode/production.ini +env HOME=/var/hg +env USER=hg +env GROUP=hg + +exec /var/hg/.virtualenvs/rhodecode/bin/paster serve --user=$USER --group=$GROUP --pid-file=$PIDFILE --log-file=$LOGFILE $APPINI + +post-stop script + rm $PIDFILE +end script |