summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2-server.init
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-08-01 02:02:08 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-08-01 02:02:08 +0000
commit8b6e761baac8bb93e631da2e405d3f1e49b01916 (patch)
treec7f668729f80d3fc3d7cbb92465db81f49bbbad5 /debian/bcfg2-server.init
parenta5733c06ab8b7491aaf9dcc6e15d7d14016d8806 (diff)
downloadbcfg2-8b6e761baac8bb93e631da2e405d3f1e49b01916.tar.gz
bcfg2-8b6e761baac8bb93e631da2e405d3f1e49b01916.tar.bz2
bcfg2-8b6e761baac8bb93e631da2e405d3f1e49b01916.zip
Packaging changes from ressu
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2019 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'debian/bcfg2-server.init')
-rw-r--r--debian/bcfg2-server.init86
1 files changed, 0 insertions, 86 deletions
diff --git a/debian/bcfg2-server.init b/debian/bcfg2-server.init
deleted file mode 100644
index 5a51056f2..000000000
--- a/debian/bcfg2-server.init
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-#
-# Bcfg2Server - Bcfg2 configuration daemon
-#
-# 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
-
-DAEMON=/usr/sbin/bcfg2-server
-PIDFILE=/var/run/bcfg2-server.pid
-PARAMS="-D $PIDFILE"
-
-# Exit if $DAEMON doesn't exist and is not executable
-test -x $DAEMON || exit 5
-
-# Include lsb functions
-. /lib/lsb/init-functions
-
-# Internal variables
-BINARY=$(basename $DAEMON)
-
-case "$1" in
- start)
- echo -n "Starting Configuration Management Server: "
- start_daemon ${DAEMON} ${PARAMS}
- STATUS=$?
- if [ "$STATUS" = 0 ]
- then
- log_success_msg "bcfg2-server"
- else
- log_failure_msg "bcfg2-server"
- fi
- exit $STATUS
- ;;
- stop)
- echo -n "Stopping Configuration Management Server: "
- killproc ${BINARY}
- STATUS=$?
- if [ "$STATUS" = 0 ]; then
- log_success_msg "bcfg2-server"
- exit 0
- else
- log_failure_msg "bcfg2-server"
- fi
- exit $STATUS
- ;;
- force-reload|restart)
- $0 stop
- sleep 5
- $0 start
- ;;
- status)
- # Inspired by redhat /etc/init.d/functions status() call
- PID=$(pidof -x $BINARY)
- if [ -n "$PID" ]; then
- echo "$BINARY (pid $PID) is running..."
- exit 0
- fi
-
- if [ -f $PIDFILE ]; then
- if [ -n "$PID" ]; then
- echo "$BINARY dead but pid file exists..."
- exit 1
- fi
- fi
-
- echo "$BINARY is not running"
- exit 3
- ;;
- *)
- log_success_msg "Usage: bcfg2-server {start|stop|restart|force-reload}"
- exit 1
- ;;
-esac
-
-exit 0