summaryrefslogtreecommitdiffstats
path: root/debian/bcfg2.init
blob: 84bc90abe68cf7729633eb11b51c1ec20b8cc5a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
#
# bcfg2 - bcfg2 configuration client
#
# chkconfig: 2345 19 81
# description: bcfg2 client for configuration requests
# 
BCFG2_OPTIONS="-nq"
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