summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2-server.bcfg2-xmlrpc.init
diff options
context:
space:
mode:
Diffstat (limited to 'debian/bcfg2-server.bcfg2-xmlrpc.init')
-rw-r--r--debian/bcfg2-server.bcfg2-xmlrpc.init7
1 files changed, 5 insertions, 2 deletions
diff --git a/debian/bcfg2-server.bcfg2-xmlrpc.init b/debian/bcfg2-server.bcfg2-xmlrpc.init
index 7f4eef1c4..6d4b74c36 100644
--- a/debian/bcfg2-server.bcfg2-xmlrpc.init
+++ b/debian/bcfg2-server.bcfg2-xmlrpc.init
@@ -6,15 +6,18 @@
# description: bcfg2 server for configuration requests
#
+PIDFILE=/var/tmp/bcfg2-xmlrpc.pid
+PIDOPTS="--pidfile ${PIDFILE}"
+
case "$1" in
start)
echo -n "Starting Bcfg2ServerX: "
- start-stop-daemon -S /usr/sbin/Bcfg2ServerX
+ start-stop-daemon --make-pidfile "${PIDOPTS}" -b -S --startas /usr/sbin/Bcfg2ServerX
echo "Bcfg2Server"
;;
stop)
echo -n "Stopping Bcfg2Server: "
- start-stop-daemon -K /usr/sbin/Bcfg2ServerX
+ start-stop-daemon "${PIDOPTS}" -K /usr/sbin/Bcfg2ServerX
echo done
;;
restart)