SPECS: nagios-notify.spec - reload nagios if it's plugin configuration was ...

glen glen at pld-linux.org
Fri Jul 11 11:30:52 CEST 2008


Author: glen                         Date: Fri Jul 11 09:30:52 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- reload nagios if it's plugin configuration was changed; rel 3

---- Files affected:
SPECS:
   nagios-notify.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: SPECS/nagios-notify.spec
diff -u SPECS/nagios-notify.spec:1.17 SPECS/nagios-notify.spec:1.18
--- SPECS/nagios-notify.spec:1.17	Thu Jul 10 11:23:50 2008
+++ SPECS/nagios-notify.spec	Fri Jul 11 11:30:47 2008
@@ -3,7 +3,7 @@
 Summary(pl.UTF-8):	Skrypt powiadamiający dla Nagiosa
 Name:		nagios-notify
 Version:	0.10
-Release:	2
+Release:	3
 License:	GPL v2
 Group:		Applications
 Source0:	%{name}-%{version}.tar.bz2
@@ -61,6 +61,9 @@
 
 %triggerpostun -- %{name} < 0.10
 %{__sed} -i -e 's,/usr/sbin/%{name},%{_sbindir}/%{name},' %{_sysconfdir}/plugins/%{name}.cfg
+if [ -f /etc/rc.d/init.d/nagios ]; then
+	%service -q nagios reload
+fi
 
 %files
 %defattr(644,root,root,755)
@@ -75,6 +78,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2008/07/11 09:30:47  glen
+- reload nagios if it's plugin configuration was changed; rel 3
+
 Revision 1.17  2008/07/10 09:23:50  glen
 - no global replace in trigger (avoids matching nagios-notify-jabber); rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nagios-notify.spec?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list