3 # cf-monitord: Starts the GNU cfengine environment daemon
6 # description: This process maintains state information about the client
7 # machine's environment (network status, running processes, load, disk
8 # usage, etc.). This data is made available as classes that can be used
9 # in the agent configuration file to regulate activity based on the system's
10 # deviation from what has been measured over a long period of time
11 # (2 months or more) to be normal or average activity.
13 # processname: cf-monitord
16 # Source function library.
17 . /etc/rc.d/init.d/functions
19 exec="/usr/sbin/cf-monitord"
20 prog=$(basename $exec)
22 [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
24 lockfile=/var/lock/subsys/$prog
27 echo -n $"Starting GNU cfengine environmental history daemon: "
31 [ $RETVAL -eq 0 ] && touch $lockfile
35 echo -n $"Stopping GNU cfengine environmental history daemon: "
39 [ $RETVAL -eq 0 ] && rm -f $lockfile
61 start|stop|restart|reload)
71 [ ! -f $lockfile ] || restart
74 echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"