Mercurial > kallithea
comparison init.d/celeryd-upstart.conf @ 7417:1d539bb18165
cli: convert 'gearbox celeryd' into 'kallithea-cli celery-run'
Note:
- '--' is never explicitly present in the arguments when using Click.
The click parser will take care of '--' as separator between
dash-dash-arguments and positional arguments, following standard UNIX
conventions.
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> |
---|---|
date | Sun, 18 Nov 2018 20:02:17 +0100 |
parents | 2c3d30095d5e |
children |
comparison
equal
deleted
inserted
replaced
7416:502b9bd0a24d | 7417:1d539bb18165 |
---|---|
19 # To use group (if different from user), you must edit sudoers file and change | 19 # To use group (if different from user), you must edit sudoers file and change |
20 # root's entry from (ALL) to (ALL:ALL) | 20 # root's entry from (ALL) to (ALL:ALL) |
21 # env GROUP=hg | 21 # env GROUP=hg |
22 | 22 |
23 script | 23 script |
24 COMMAND="/var/hg/.virtualenvs/kallithea/bin/gearbox celeryd -c $APPINI -- --pidfile=$PIDFILE" | 24 COMMAND="/var/hg/.virtualenvs/kallithea/bin/kallithea-cli celery-run -c $APPINI -- --pidfile=$PIDFILE" |
25 if [ -z "$GROUP" ]; then | 25 if [ -z "$GROUP" ]; then |
26 exec sudo -u $USER $COMMAND | 26 exec sudo -u $USER $COMMAND |
27 else | 27 else |
28 exec sudo -u $USER -g $GROUP $COMMAND | 28 exec sudo -u $USER -g $GROUP $COMMAND |
29 fi | 29 fi |