#!/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

