--- init-script.in 2003-01-08 03:57:23.000000000 +0100 +++ init-script.in 2008-03-11 17:52:45.000000000 +0100 @@ -5,11 +5,11 @@ # This script takes care of starting and stopping the NSCA daemon. # Modeled after init script for NRPE written by jaclu@grm.se # -# chkconfig: 2345 80 30 +# chkconfig: - 80 20 # description: nsca is a daemon for accepting service check results \ # from applications running on other hosts. # processname: nsca -# config: /usr/local/nagios/etc/nsca.cfg +# config: /etc/nagios/nsca.cfg # Source function library if [ -f /etc/rc.d/init.d/functions ]; then @@ -26,7 +26,7 @@ # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 -NscaBin=@bindir@/nsca +NscaBin=@sbindir@/nsca NscaCfg=@sysconfdir@/nsca.cfg LockFile=/var/lock/subsys/nsca @@ -51,11 +51,21 @@ $0 stop $0 start ;; + reload) + echo -n $"Reloading nsca: " + killproc nsca -HUP + RETVAL=$? + echo + ;; + condrestart) + [ -e $LockFile ] && restart + RETVAL=$? + ;; status) status nsca ;; *) - echo "Usage: nsca {start|stop|restart|status}" + echo "Usage: nsca {start|stop|restart|reload|condrestart|status}" exit 1 esac