SPECS: natmonitor.spec - use %service
darekr
darekr at pld-linux.org
Tue Jul 3 02:18:46 CEST 2007
Author: darekr Date: Tue Jul 3 00:18:46 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service
---- Files affected:
SPECS:
natmonitor.spec (1.32 -> 1.33)
---- Diffs:
================================================================
Index: SPECS/natmonitor.spec
diff -u SPECS/natmonitor.spec:1.32 SPECS/natmonitor.spec:1.33
--- SPECS/natmonitor.spec:1.32 Tue Feb 13 08:16:49 2007
+++ SPECS/natmonitor.spec Tue Jul 3 02:18:41 2007
@@ -100,17 +100,11 @@
%post -n natmonitord
/sbin/chkconfig --add natmonitord
-if [ -f /var/lock/subsys/natmonitord ]; then
- /etc/rc.d/init.d/natmonitord restart >&2
-else
- echo "Run \"/etc/rc.d/init.d/natmonitord start\" to start natmonitord daemon." >&2
-fi
+%service natmonitord restart
%preun -n natmonitord
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/natmonitord ]; then
- /etc/rc.d/init.d/natmonitord stop >&2
- fi
+ %service natmonitord stop
/sbin/chkconfig --del natmonitord
fi
@@ -143,6 +137,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.33 2007/07/03 00:18:41 darekr
+- use %service
+
Revision 1.32 2007/02/13 07:16:49 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/natmonitor.spec?r1=1.32&r2=1.33&f=u
More information about the pld-cvs-commit
mailing list