[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, master, updated. debian/0.3-1-15-gb4f5e13
Alexander Wirt
alexander.wirt at credativ.de
Tue Feb 26 09:45:38 UTC 2013
The following commit has been merged in the master branch:
commit b4f5e133956014eafc5570605ec81c8a1280596b
Author: Alexander Wirt <alexander.wirt at credativ.de>
Date: Tue Feb 26 10:45:23 2013 +0100
Fix status handling
diff --git a/debian/nsca-ng-server.init b/debian/nsca-ng-server.init
index 75d9860..c863156 100644
--- a/debian/nsca-ng-server.init
+++ b/debian/nsca-ng-server.init
@@ -68,7 +68,7 @@ fi
DAEMONCTL="start-stop-daemon --quiet --pidfile $PIDFILE --exec $DAEMON"
check_started() {
- if status_of_proc "$DAEMON" "$DESC"
+ if ! start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null
then
return 0 #is started
else
@@ -98,8 +98,6 @@ start)
if ! check_started
then
$DAEMONCTL --start -- $DAEMONARGS
- else
- log_warning_msg "already running!"
fi
log_end_msg $?
;;
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list