Show More
@@ -0,0 +1,26 b'' | |||
|
1 | # rhodecode - run the rhodecode daemon as an upstart job | |
|
2 | # Change variables/paths as necessary and place file /etc/init/rhodecode.conf | |
|
3 | # start/stop/restart as normal upstart job (ie: $ start rhodecode) | |
|
4 | ||
|
5 | description "RhodeCode Mercurial Server" | |
|
6 | author "Matt Zuba <matt.zuba@goodwillaz.org" | |
|
7 | ||
|
8 | start on (local-filesystems and runlevel [2345]) | |
|
9 | stop on runlevel [!2345] | |
|
10 | ||
|
11 | respawn | |
|
12 | ||
|
13 | umask 0022 | |
|
14 | ||
|
15 | env PIDFILE=/var/hg/rhodecode/rhodecode.pid | |
|
16 | env LOGFILE=/var/hg/rhodecode/log/rhodecode.log | |
|
17 | env APPINI=/var/hg/rhodecode/production.ini | |
|
18 | env HOME=/var/hg | |
|
19 | env USER=hg | |
|
20 | env GROUP=hg | |
|
21 | ||
|
22 | exec /var/hg/.virtualenvs/rhodecode/bin/paster serve --user=$USER --group=$GROUP --pid-file=$PIDFILE --log-file=$LOGFILE $APPINI | |
|
23 | ||
|
24 | post-stop script | |
|
25 | rm $PIDFILE | |
|
26 | end script |
General Comments 0
You need to be logged in to leave comments.
Login now