summaryrefslogtreecommitdiffstats
path: root/debian/buildsys/2.3/bcfg2.init
diff options
context:
space:
mode:
Diffstat (limited to 'debian/buildsys/2.3/bcfg2.init')
-rw-r--r--debian/buildsys/2.3/bcfg2.init72
1 files changed, 0 insertions, 72 deletions
diff --git a/debian/buildsys/2.3/bcfg2.init b/debian/buildsys/2.3/bcfg2.init
deleted file mode 100644
index 463d6a414..000000000
--- a/debian/buildsys/2.3/bcfg2.init
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-#
-# bcfg2 - bcfg2 configuration client
-#
-# chkconfig: 2345 19 81
-# description: bcfg2 client for configuration requests
-#
-### BEGIN INIT INFO
-# Provides: bcfg2
-# Required-Start: $network $remote_fs $named
-# Required-Stop: $network $remote_fs $named
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: Configuration management client
-# Description: Bcfg2 is a configuration management system that builds
-# installs configuration files served by bcfg2-server
-# This is a client that installs the server provided
-# Configuration.
-### END INIT INFO
-
-# This might need some better logic
-BCFG2=/usr/sbin/bcfg2
-
-# Set default options
-# You can set script specific options with BCFG2_OPTIONS_INIT
-BCFG2_OPTIONS="-q"
-
-# Disabled per default
-BCFG2_ENABLED=0
-BCFG2_INIT=0
-BCFG2_AGENT=0
-
-# Include default startup configuration if exists
-test -f "/etc/default/bcfg2" && . /etc/default/bcfg2
-
-[ "$BCFG2_ENABLED" -eq 0 ] && exit 0
-[ "$BCFG2_AGENT" -eq 0 -a "$BCFG2_INIT" -eq 0 ] && exit 0
-
-# Exit if bcfg2 doesn't exist and is not executable
-test -x $BCFG2 || exit 5
-
-case "$1" in
- start)
- echo -n "Running configuration management client: "
-
- if [ "$BCFG2_AGENT" -eq 1 ]
- then
- ${BCFG2} -A -i /var/run/bcfg2-agent.pid ${BCFG2_OPTIONS} ${BCFG2_OPTIONS_AGENT}
- STATUS=$?
- fi
-
- if [ "$BCFG2_INIT" -eq 1 ]
- then
- ${BCFG2} ${BCFG2_OPTIONS} ${BCFG2_OPTIONS_INIT}
- STATUS=$?
- fi
-
- echo "bcfg2"
- ;;
- status)
- # Since we are always OK, always return OK as status
- exit 0
- ;;
- restart|reload|stop|force-reload)
- true
- ;;
- *)
- echo "Usage: $0 {start|stop|restart|reload|force-reload|status}"
- exit 1
-esac
-
-exit 0