Révision 1e18e58f
Ajouté par Jérôme Schneider il y a plus de 10 ans
debian/wcsinstd.init | ||
---|---|---|
19 | 19 |
LOG_DIR=/var/log/$NAME |
20 | 20 |
SCRIPTNAME=/etc/init.d/$NAME |
21 | 21 |
|
22 |
USER=wcsinstd
|
|
23 |
GROUP=wcsinstd
|
|
22 |
USER=wcs-au-quotidien
|
|
23 |
GROUP=wcs-au-quotidien
|
|
24 | 24 |
|
25 | 25 |
DAEMON_ARGS="--pid $PIDFILE \ |
26 | 26 |
--user $USER --group $GROUP \ |
... | ... | |
155 | 155 |
esac |
156 | 156 |
;; |
157 | 157 |
manage) |
158 |
shift
|
|
159 |
if [ $(id -un) != 'wcsinstd' ]; then
|
|
160 |
sudo -E -u wcsinstd python /usr/lib/$NAME/manage.py "$@"
|
|
161 |
else
|
|
162 |
python /usr/lib/$NAME/manage.py "$@"
|
|
163 |
fi
|
|
158 |
shift
|
|
159 |
if [ $(id -un) != $USER ]; then
|
|
160 |
sudo -E -u $USER python /usr/lib/$NAME/manage.py "$@"
|
|
161 |
else
|
|
162 |
python /usr/lib/$NAME/manage.py "$@"
|
|
163 |
fi
|
|
164 | 164 |
;; |
165 | 165 |
*) |
166 | 166 |
#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 |
Formats disponibles : Unified diff
init.d: using wcs-au-quotidien by default