summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2-server.init
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-10-27 21:26:32 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-10-27 21:26:32 +0000
commitdc54537f32c3a4ea9c727fb9afd4194ff45d4800 (patch)
tree543b0cec7668ed3373839db223834f94fcbd7a2b /debian/bcfg2-server.init
parentc3e69eb50d999a1c3ce4c11c6ea56918aa3bffb0 (diff)
downloadbcfg2-dc54537f32c3a4ea9c727fb9afd4194ff45d4800.tar.gz
bcfg2-dc54537f32c3a4ea9c727fb9afd4194ff45d4800.tar.bz2
bcfg2-dc54537f32c3a4ea9c727fb9afd4194ff45d4800.zip
Rename: Bcfg2Server.init -> debian/bcfg2-server.init
(Logical change 1.121) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@540 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian/bcfg2-server.init')
-rw-r--r--debian/bcfg2-server.init33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/bcfg2-server.init b/debian/bcfg2-server.init
index e69de29bb..b1773d046 100644
--- a/debian/bcfg2-server.init
+++ b/debian/bcfg2-server.init
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# Bcfg2Server - Bcfg2 configuration daemon
+#
+# chkconfig: 2345 19 81
+# description: bcfg2 server for configuration requests
+#
+
+case "$1" in
+ start)
+ echo -n "Starting Bcfg2Server: "
+ /usr/sbin/Bcfg2Server -D /var/run/Bcfg2Server.pid
+ echo "Bcfg2Server"
+ ;;
+ stop)
+ echo -n "Stopping Bcfg2Server: "
+ kill -INT `cat /var/run/Bcfg2Server.pid`
+ echo done
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ force-reload)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: bcfgd {start|stop|restart|force-reload}"
+ exit 1
+esac
+
+exit 0