[packages/mk-livestatus] do not restart on package remove

glen glen at pld-linux.org
Wed Aug 5 23:43:13 CEST 2015


commit abea6bfbcf6b05790e1637793ef80154a1af0076
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Aug 6 00:42:09 2015 +0300

    do not restart on package remove
    
    the load directive is still present in config and doing restart would
    cause nagios just being unable to start, i.e being stopped

 mk-livestatus.spec | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/mk-livestatus.spec b/mk-livestatus.spec
index 15eb836..bf639ba 100644
--- a/mk-livestatus.spec
+++ b/mk-livestatus.spec
@@ -56,12 +56,6 @@ rm -rf $RPM_BUILD_ROOT
 %post
 %service -q nagios restart
 
-%postun
-if [ "$1" = 0 ]; then
-	%service -q nagios restart
-fi
-
-
 %files
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/livestatus-load.cfg
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mk-livestatus.git/commitdiff/abea6bfbcf6b05790e1637793ef80154a1af0076



More information about the pld-cvs-commit mailing list