SPECS: monopd.spec - unified %post, %preun

pawelz pawelz at pld-linux.org
Fri Oct 17 09:03:11 CEST 2008


Author: pawelz                       Date: Fri Oct 17 07:03:11 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- unified %post, %preun

---- Files affected:
SPECS:
   monopd.spec (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: SPECS/monopd.spec
diff -u SPECS/monopd.spec:1.19 SPECS/monopd.spec:1.20
--- SPECS/monopd.spec:1.19	Thu Mar 27 19:30:38 2008
+++ SPECS/monopd.spec	Fri Oct 17 09:03:06 2008
@@ -53,19 +53,11 @@
 
 %post
 /sbin/chkconfig --add monopd
-if [ -f /var/lock/subsys/monopd ]; then
-	/etc/rc.d/init.d/monopd restart >&2
-else
-	%banner %{name} -e <<EOF
-Run \"/etc/rc.d/init.d/monopd start\" to start monopd.
-EOF
-fi
+%service monopd restart "monopd server"
 
 %preun
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/monopd ]; then
-		/etc/rc.d/init.d/monopd stop
-	fi
+	%service monopd stop
 	/sbin/chkconfig --del monopd
 fi
 
@@ -85,6 +77,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.20  2008/10/17 07:03:06  pawelz
+- unified %post, %preun
+
 Revision 1.19  2008/03/27 18:30:38  sls
 - rel. 1
 - BR: libcapsinetwork-devel >= 0.3.0
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/monopd.spec?r1=1.19&r2=1.20&f=u



More information about the pld-cvs-commit mailing list