Mercurial > kallithea
comparison init.d/kallithea-upstart.conf @ 4190:99ad9d0af1a3 kallithea-2.2.5-rebrand
Rename init scripts and fix references inside them
author | Bradley M. Kuhn <bkuhn@sfconservancy.org> |
---|---|
date | Wed, 02 Jul 2014 19:04:40 -0400 |
parents | init.d/rhodecode-upstart.conf@58df0b3ed377 |
children | 24c0d584ba86 |
comparison
equal
deleted
inserted
replaced
4189:9793473d74be | 4190:99ad9d0af1a3 |
---|---|
1 # kallithea - run the kallithea daemon as an upstart job | |
2 # Change variables/paths as necessary and place file /etc/init/kallithea.conf | |
3 # start/stop/restart as normal upstart job (ie: $ start kallithea) | |
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/kallithea/kallithea.pid | |
16 env LOGFILE=/var/hg/kallithea/log/kallithea.log | |
17 env APPINI=/var/hg/kallithea/production.ini | |
18 env HOME=/var/hg | |
19 env USER=hg | |
20 env GROUP=hg | |
21 | |
22 exec /var/hg/.virtualenvs/kallithea/bin/paster serve --user=$USER --group=$GROUP --pid-file=$PIDFILE --log-file=$LOGFILE $APPINI | |
23 | |
24 post-stop script | |
25 rm -f $PIDFILE | |
26 end script |