4 configfile
="/etc/coherence.conf"
5 pidfile
=/var
/run
/$daemon_name.pid
6 daemon_args
="-d -c ${configfile}"
13 stat_busy
"Starting Coherence daemon"
14 if [ -z `pidof -o %PPID -x $daemon_name` ]; then
15 [ -f ${pidfile} ] && rm -f ${pidfile}
17 /usr
/bin
/$daemon_name $daemon_args
23 add_daemon
$daemon_name
24 pidof
-o %PPID
-x $daemon_name > ${pidfile}
34 stat_busy
"Stopping Coherence daemon"
36 [ -f ${pidfile} ] && kill `cat ${pidfile}` >/dev
/null
2>&1
43 rm_daemon
$daemon_name
54 echo "usage: $0 {start|stop|restart}"