Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Update
nsca
rcnsca
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rcnsca of Package nsca
#!/bin/sh # # Copyright (c) 2006 SUSE Linux Products GmbH # # Contributors: # Stephan Lauffer <lauffer@ph-freiburg.de> # Wolfgang Rosenauer # ### BEGIN INIT INFO # Provides: nagios-nsca # Required-Start: $remote_fs $syslog $network monitoring_daemon # Required-Stop: $remote_fs $syslog # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: NSCA Nagios Service Check Acceptor # Description: NSCA is a daemon for accepting service check result from applications # running on other hosts. ### END INIT INFO NscaBin=/usr/bin/nsca test -x $NscaBin || { echo "$NscaBin not installed"; if [ "$1" = "stop" ]; then exit 0; else exit 5; fi; } NscaCfg=/etc/nsca.cfg test -r $NscaCfg || { echo "$NscaCfg not existing"; if [ "$1" = "stop" ]; then exit 0; else exit 6; fi; } . /etc/rc.status rc_reset case "$1" in start) echo -n "Starting Nagios NSCA " /sbin/startproc $NscaBin -s -c $NscaCfg rc_status -v ;; stop) echo -n "Shutting down Nagios NSCA " /sbin/killproc -TERM $NscaBin rc_status -v ;; try-restart|condrestart) if test "$1" = "condrestart"; then echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}" fi $0 status if test $? = 0; then $0 restart else rc_reset fi rc_status ;; restart) $0 stop $0 start rc_status ;; reload|force-reload) echo -n "Reload service Nagios NSCA " /sbin/killproc -HUP $NscaBin rc_status -v ;; status) echo -n "Checking for service Nagios NSCA " /sbin/checkproc $NscaBin rc_status -v ;; probe) test $NscaCfg -nt /var/run/nsca.pid && echo reload ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}" exit 1 ;; esac rc_exit
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor