#! /bin/sh # # smokeping Startup script for the SmokePing # # chkconfig: - 90 10 # description: smokeping daemon # processname: smokeping # config: /opt/smokeping/etc/config # pidfile: /var/run/smokeping.pid # Source function library. . /etc/rc.d/init.d/functions RETVAL=0 PROCNAME=smokeping # See how we were called. case "$1" in start) echo -n "Starting smokeping daemon: " /opt/smokeping/bin/smokeping --config=/opt/smokeping/etc/config --logfile=smoke.log& echo touch /var/lock/subsys/smokeping ;; stop) echo -n "Stopping smokeping daemon: " killproc smokeping echo rm -f /var/lock/subsys/rpc.drac ;; status) status $PROCNAME RETVAL=$? ;; restart|reload) $0 stop $0 start RETVAL=$? ;; *) echo "Usage: smokeping {start|stop|status|restart}" exit 1 esac exit $RETVAL