From 8b6e761baac8bb93e631da2e405d3f1e49b01916 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Tue, 1 Aug 2006 02:02:08 +0000 Subject: Packaging changes from ressu git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2019 ce84e21b-d406-0410-9b95-82705330c041 --- debian/buildsys/2.3/bcfg2.init | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 debian/buildsys/2.3/bcfg2.init (limited to 'debian/buildsys/2.3/bcfg2.init') diff --git a/debian/buildsys/2.3/bcfg2.init b/debian/buildsys/2.3/bcfg2.init new file mode 100644 index 000000000..a184297e8 --- /dev/null +++ b/debian/buildsys/2.3/bcfg2.init @@ -0,0 +1,37 @@ +#!/bin/sh +# +# bcfg2 - bcfg2 configuration client +# +# chkconfig: 2345 19 81 +# description: bcfg2 client for configuration requests +# +BCFG2_OPTIONS="-q" +test -f "/etc/default/bcfg2" && . /etc/default/bcfg2 + +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 $BCFG2_OPTIONS + echo "bcfg2" + fi + ;; + stop) + /bin/true + ;; + restart) + $0 stop + $0 start + ;; + force-reload) + true + ;; + *) + echo "Usage: bcfg2 {start|stop|restart}" + exit 1 +esac + +exit 0 -- cgit v1.2.3-1-g7c22