File: start-cfd

package info (click to toggle)
cfengine 1.4.9-3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 3,540 kB
  • ctags: 1,861
  • sloc: ansic: 25,408; sh: 1,708; perl: 1,088; lex: 690; makefile: 435; lisp: 182; yacc: 101; csh: 24
file content (25 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (2)
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
#!/bin/sh
#
# Start the cfengine daemon
#

PATH=/usr/bin:/bin

hostn=`hostname`

case $1 in

 start)
        /local/gnu/bin/cfd
        exit 0
        ;;

 stop)  echo Trying to kill lock.cfd_conf.$hostn.cfd.daemon
        if test -f /var/run/cfengine/lock.cfd_conf.$hostn.cfd.daemon; then
          kill `cat /var/run/cfengine/lock.cfd_conf.$hostn.cfd.daemon`
          rm -f /var/run/cfengine/lock.cfd_conf.$hostn.cfd.daemon
        fi
        ;;

esac