Revision 47834a4f doc/examples/ganeti.initd.in

b/doc/examples/ganeti.initd.in
1 1
#!/bin/sh
2 2
# ganeti daemons init script
3
# based on skeleton from Debian GNU/Linux
3
#
4
# chkconfig: 2345 99 01
5
# description: Ganeti Cluster Manager
4 6
### BEGIN INIT INFO
5 7
# Provides:          ganeti
6 8
# Required-Start:    $syslog $remote_fs
......
20 22

  
21 23
test -f "$DAEMON_UTIL" || exit 0
22 24

  
23
. /lib/lsb/init-functions
25
if [ -r /lib/lsb/init-functions ]; then
26
  . /lib/lsb/init-functions
27
elif [ -r /etc/rc.d/init.d/functions ]; then
28
  . /etc/rc.d/init.d/functions
29
else
30
  echo "Unable to find init functions"
31
  exit 1
32
fi
24 33

  
25 34
check_exitcode() {
26 35
    RC=$1

Also available in: Unified diff