File: dracd-setup.linux

package info (click to toggle)
drac 1.12-7.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 160 kB
  • sloc: ansic: 878; makefile: 119; sh: 83
file content (30 lines) | stat: -rwxr-xr-x 664 bytes parent folder | download | duplicates (7)
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
#!/bin/sh -
# Put this file into /etc/rc.d/init.d/dracd
# and link it intot he run levels you want to use it
# by doing "ln -s  /etc/rc.d/init.d/dracd /etc/rc.d/rc.<runlevel>/S99dracd"
#
# dracd-setup

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        echo -n "Starting rpc.dracd daemon: "
        daemon rpc.dracd&
        echo
        touch /var/lock/subsys/rpc.dracd
        ;;
  stop)
        echo -n "Stopping rpc.dracd daemon: "
        killproc rpc.dracd
        echo
        rm -f /var/lock/subsys/rpc.dracd
        ;;
  *)
        echo "Usage: dracd {start|stop}"
        exit 1
esac

exit 0