diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-11-09 20:58:08 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-11-09 20:58:08 +0000 |
commit | e49657c2180219e308290779e9ff228e1850d20c (patch) | |
tree | c3928ebd1d720049ab4404662e8445fb11340769 /debian | |
parent | c02bb12d3d7335bbcf6929b803368508b3480106 (diff) | |
download | bcfg2-e49657c2180219e308290779e9ff228e1850d20c.tar.gz bcfg2-e49657c2180219e308290779e9ff228e1850d20c.tar.bz2 bcfg2-e49657c2180219e308290779e9ff228e1850d20c.zip |
fix init script for xmlrpc server
(Logical change 1.352)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1472 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian')
-rw-r--r-- | debian/bcfg2-server.bcfg2-xmlrpc.init | 7 |
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) |