SPECS: haps.spec - use %service

darekr darekr at pld-linux.org
Fri Oct 27 20:44:11 CEST 2006


Author: darekr                       Date: Fri Oct 27 18:44:11 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use %service

---- Files affected:
SPECS:
   haps.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/haps.spec
diff -u SPECS/haps.spec:1.6 SPECS/haps.spec:1.7
--- SPECS/haps.spec:1.6	Tue Dec 13 21:05:54 2005
+++ SPECS/haps.spec	Fri Oct 27 20:44:05 2006
@@ -36,17 +36,11 @@
 
 %post
 /sbin/chkconfig --add haps
-if [ -f /var/lock/subsys/haps ]; then
-	/etc/rc.d/init.d/haps restart >&2
-else
-	echo "Run \"/etc/rc.d/init.d/haps start\" to start haps." >&2
-fi
+%service haps restart
 
 %preun
 if [ "$1" = "0" ]; then
-	if [ -f /var/lock/subsys/haps ]; then
-		/etc/rc.d/init.d/haps stop >&2
-	fi
+	%service haps stop
 	/sbin/chkconfig --del haps
 fi
 
@@ -79,6 +73,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2006/10/27 18:44:05  darekr
+- use %service
+
 Revision 1.6  2005/12/13 20:05:54  qboosh
 - cleanups, /lib files fix
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/haps.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list