summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2.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
commit852022722abda7ccc3a4e3bfbaa04f95bcb5d57d (patch)
tree07253f8cf1a1343057ca88d839f1905869bedfbb /debian/bcfg2.init
parent3602655fa853391f15a964673be4c93c462aa6a7 (diff)
downloadbcfg2-852022722abda7ccc3a4e3bfbaa04f95bcb5d57d.tar.gz
bcfg2-852022722abda7ccc3a4e3bfbaa04f95bcb5d57d.tar.bz2
bcfg2-852022722abda7ccc3a4e3bfbaa04f95bcb5d57d.zip
Rename: bcfg2.init -> debian/bcfg2.init
(Logical change 1.121) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@538 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian/bcfg2.init')
-rw-r--r--debian/bcfg2.init32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/bcfg2.init b/debian/bcfg2.init
index e69de29bb..9da2e018c 100644
--- a/debian/bcfg2.init
+++ b/debian/bcfg2.init
@@ -0,0 +1,32 @@
+#!/bin/sh
+#
+# bcfg2 - bcfg2 configuration client
+#
+# chkconfig: 2345 19 81
+# description: bcfg2 client for configuration requests
+#
+
+case "$1" in
+ start)
+ if test -e /etc/donttouchme; then
+ rm -f /etc/donttouchme
+ echo "bcfg2 does not need to run."
+ else
+ echo -n "Running bcfg: "
+ /usr/sbin/bcfg2 -q
+ echo "bcfg2"
+ fi
+ ;;
+ stop)
+ /bin/true
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: bcfg2 {start|stop|restart}"
+ exit 1
+esac
+
+exit 0