SPECS: monitorix.spec - added preun
paszczus
paszczus at pld-linux.org
Sun May 21 17:05:21 CEST 2006
Author: paszczus Date: Sun May 21 15:05:21 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added preun
---- Files affected:
SPECS:
monitorix.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/monitorix.spec
diff -u SPECS/monitorix.spec:1.6 SPECS/monitorix.spec:1.7
--- SPECS/monitorix.spec:1.6 Sun May 21 16:47:58 2006
+++ SPECS/monitorix.spec Sun May 21 17:05:16 2006
@@ -12,7 +12,7 @@
# Source0-md5: ddd330c84b59ea7ebb7cf63d9031757f
Source1: %{name}.conf
Requires: bash
-Requires: perl-base
+Requires: perl-rrdtool
Requires: rc-scripts
Requires: rrdtool
Requires: webserver
@@ -88,6 +88,12 @@
%triggerun -- apache < 2.2.0, apache-base
%webapp_unregister httpd %{_webapp}
+%preun
+if [ "$1" = "0" ]; then
+ %service %{name} stop
+ /sbin/chkconfig --del %{name}
+fi
+
%files
%defattr(644,root,root,755)
%attr(754,root,root) /etc/rc.d/init.d/monitorix
@@ -121,6 +127,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2006/05/21 15:05:16 paszczus
+- added preun
+
Revision 1.6 2006/05/21 14:47:58 paszczus
- do not create any directory while installing
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/monitorix.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list