Revision 507079e2
Added by Jérôme Schneider over 12 years ago
debian/wcs-au-quotidien.init | ||
---|---|---|
20 | 20 |
OPTIONS="--extra /usr/lib/pymodules/python$PYTHON_VERSION/extra-wcs-au-quotidien/" |
21 | 21 |
WCS_USER=wcs-au-quotidien |
22 | 22 |
WCS_GROUP=wcs-au-quotidien |
23 |
CONFIG_FILE=/etc/wcs/wcs-au-quotidien.cfg |
|
23 | 24 |
|
24 | 25 |
# Gracefully exit if the package has been removed. |
25 | 26 |
test -x $DAEMON || exit 0 |
... | ... | |
34 | 35 |
# Function that starts the daemon/service. |
35 | 36 |
# |
36 | 37 |
d_start() { |
37 |
start-stop-daemon --start --quiet --pidfile $PIDFILE \ |
|
38 |
--chuid $WCS_USER:$WCS_GROUP \ |
|
39 |
--make-pidfile --background --exec $DAEMON -- start $OPTIONS |
|
38 |
if [ $CONFIG_FILE ]; then |
|
39 |
start-stop-daemon --start --quiet --pidfile $PIDFILE \ |
|
40 |
--chuid $WCS_USER:$WCS_GROUP --make-pidfile --background \ |
|
41 |
--exec $DAEMON -- -f $CONFIG_FILE start $OPTIONS |
|
42 |
else |
|
43 |
start-stop-daemon --start --quiet --pidfile $PIDFILE \ |
|
44 |
--chuid $WCS_USER:$WCS_GROUP --make-pidfile --background \ |
|
45 |
--exec $DAEMON -- start $OPTIONS |
|
46 |
fi |
|
40 | 47 |
} |
41 | 48 |
|
42 | 49 |
# |
Also available in: Unified diff
Debian packaging: use wcs au quotidien configuration file