diff options
Diffstat (limited to 'debian')
-rw-r--r-- | debian/bcfg2-server.init | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/bcfg2-server.init b/debian/bcfg2-server.init index b1773d046..efcd006a8 100644 --- a/debian/bcfg2-server.init +++ b/debian/bcfg2-server.init @@ -6,15 +6,17 @@ # description: bcfg2 server for configuration requests # +PIDFILE=/var/tmp/bcfg2-xmlrpc.pid + case "$1" in start) - echo -n "Starting Bcfg2Server: " - /usr/sbin/Bcfg2Server -D /var/run/Bcfg2Server.pid + echo -n "Starting Bcfg2ServerX: " + start-stop-daemon --make-pidfile --pidfile "${PIDFILE}" -b -S --startas /usr/sbin/Bcfg2ServerX echo "Bcfg2Server" ;; stop) echo -n "Stopping Bcfg2Server: " - kill -INT `cat /var/run/Bcfg2Server.pid` + start-stop-daemon --pidfile "${PIDFILE}" -K /usr/sbin/Bcfg2ServerX echo done ;; restart) @@ -26,7 +28,7 @@ case "$1" in $0 start ;; *) - echo "Usage: bcfgd {start|stop|restart|force-reload}" + echo "Usage: bcfg2-xmlrpc-server {start|stop|restart|force-reload}" exit 1 esac |