summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2005-11-28 21:44:30 +0000
committerNarayan Desai <desai@mcs.anl.gov>2005-11-28 21:44:30 +0000
commit9cfdf32dfcbaa63f7e497730a75551280f0962b9 (patch)
treefe98d16d1ba8a7d8076650f55d4b7b60b2d4ba57 /debian
parent7fcb71a1a06b4656b75bfa653b13667506cf5ed7 (diff)
downloadbcfg2-9cfdf32dfcbaa63f7e497730a75551280f0962b9.tar.gz
bcfg2-9cfdf32dfcbaa63f7e497730a75551280f0962b9.tar.bz2
bcfg2-9cfdf32dfcbaa63f7e497730a75551280f0962b9.zip
Rename: debian/bcfg2-server.bcfg2-xmlrpc.init -> debian/bcfg2-server.init
(Logical change 1.369) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1553 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian')
-rw-r--r--debian/bcfg2-server.init10
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