[packages/nagios-ndoutils] restart nagios when module is upgraded

glen glen at pld-linux.org
Wed Aug 5 23:41:37 CEST 2015


commit c09ea890f7e12388b66f9fa8567db9bd44f49663
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Aug 6 00:41:23 2015 +0300

    restart nagios when module is upgraded

 nagios-ndoutils.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/nagios-ndoutils.spec b/nagios-ndoutils.spec
index f523f04..4e32eb1 100644
--- a/nagios-ndoutils.spec
+++ b/nagios-ndoutils.spec
@@ -25,7 +25,7 @@ URL:		http://sourceforge.net/projects/nagios/
 %{?with_mysql:BuildRequires:	mysql-devel}
 %{?with_ssl:BuildRequires:	openssl-devel}
 %{?with_pgsql:BuildRequires:	postgresql-devel}
-BuildRequires:	rpmbuild(macros) >= 1.228
+BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	nagios >= 4.0
 Requires(post,preun):	/sbin/chkconfig
 Requires:	rc-scripts
@@ -96,6 +96,7 @@ rm -rf $RPM_BUILD_ROOT
 %post
 /sbin/chkconfig --add ndo2db
 %service ndo2db restart
+%service -q nagios restart
 
 %preun
 if [ "$1" = "0" ]; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-ndoutils.git/commitdiff/c09ea890f7e12388b66f9fa8567db9bd44f49663



More information about the pld-cvs-commit mailing list