summaryrefslogtreecommitdiffstats
path: root/debian/buildsys/2.3/bcfg2-server.init
diff options
context:
space:
mode:
Diffstat (limited to 'debian/buildsys/2.3/bcfg2-server.init')
-rw-r--r--debian/buildsys/2.3/bcfg2-server.init27
1 files changed, 18 insertions, 9 deletions
diff --git a/debian/buildsys/2.3/bcfg2-server.init b/debian/buildsys/2.3/bcfg2-server.init
index 8025b72cc..fb4e0cbe5 100644
--- a/debian/buildsys/2.3/bcfg2-server.init
+++ b/debian/buildsys/2.3/bcfg2-server.init
@@ -5,21 +5,34 @@
# chkconfig: 2345 19 81
# description: bcfg2 server for configuration requests
#
+### BEGIN INIT INFO
+# Provides: bcfg2-server
+# Required-Start: $network
+# Required-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: Configuration management Server
+# Description: Bcfg2 is a configuration management system that builds
+# installs configuration files served by bcfg2-server
+### END INIT INFO
PIDFILE=/var/tmp/bcfg2-server.pid
+msg=echo
+fail=echo
+
case "$1" in
start)
- echo -n "Starting bcfg2-server: "
+ $msg -n "Starting bcfg2-server: "
if [ -f "/etc/debian_version" ] ; then
/sbin/start-stop-daemon --pidfile "${PIDFILE}" --make-pidfile -b -S --startas /usr/sbin/bcfg2-server
else
/usr/sbin/bcfg2-server -D "${PIDFILE}"
fi
- echo "bcfg2-server"
+ $msg "bcfg2-server"
;;
stop)
- echo -n "Stopping bcfg2-server: "
+ $msg -n "Stopping bcfg2-server: "
if [ -f "/etc/debian_version" ] ; then
/sbin/start-stop-daemon -p "${PIDFILE}" -K /usr/sbin/bcfg2-server
else
@@ -27,17 +40,13 @@ case "$1" in
fi
echo done
;;
- restart)
+ restart|force-reload|reload)
$0 stop
sleep 5
$0 start
;;
- force-reload)
- $0 stop
- $0 start
- ;;
*)
- echo "Usage: bcfg2-server {start|stop|restart|force-reload}"
+ ${msg} "Usage: $0 {start|stop|status|reload|restart|force-reload}"
exit 1
esac