[Pkg-nagios-changes] [pkg-nagios] r1494 - nagios3/trunk/debian
Alexander Wirt
formorer at alioth.debian.org
Wed Jun 11 06:12:41 UTC 2008
Author: formorer
Date: 2008-06-11 06:12:41 +0000 (Wed, 11 Jun 2008)
New Revision: 1494
Modified:
nagios3/trunk/debian/nagios3.postinst
Log:
Only start nagios3 if its not running
Modified: nagios3/trunk/debian/nagios3.postinst
===================================================================
--- nagios3/trunk/debian/nagios3.postinst 2008-06-10 20:36:54 UTC (rev 1493)
+++ nagios3/trunk/debian/nagios3.postinst 2008-06-11 06:12:41 UTC (rev 1494)
@@ -3,10 +3,13 @@
#if we stop nagios3 in nagios3.prerm we should also start it here..
#(#481334)
if [ -x "/etc/init.d/nagios3" ]; then
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d nagios3 start || true
- else
- /etc/init.d/nagios3 start || true
+ if ! /etc/init.d/nagios3 status >/dev/null; then
+
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d nagios3 start || true
+ else
+ /etc/init.d/nagios3 start || true
+ fi
fi
fi
More information about the Pkg-nagios-changes
mailing list