Author: darekr                       Date: Sat Mar 31 20:36:21 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- kill PreReq, use %service

---- Files affected:
SPECS:
   shout.spec (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SPECS/shout.spec
diff -u SPECS/shout.spec:1.21 SPECS/shout.spec:1.22
--- SPECS/shout.spec:1.21       Mon Feb 12 23:09:15 2007
+++ SPECS/shout.spec    Sat Mar 31 22:36:15 2007
@@ -14,7 +14,7 @@
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: rpmbuild(macros) >= 1.202
-PreReq:                rc-scripts
+Requires:      rc-scripts
 Requires(pre): /bin/id
 Requires(pre): /usr/bin/getgid
 Requires(pre): /usr/sbin/groupadd
@@ -73,17 +73,11 @@
 
 %post
 /sbin/chkconfig --add shout
-if [ -f /var/lock/subsys/shout ]; then
-       /etc/rc.d/init.d/shout restart >&2
-else
-       echo "Run '/etc/rc.d/init.d/shout start' to start shout daemon." >&2
-fi
+%service shout restart
 
 %preun
 if [ "$1" = "0" ] ; then
-       if [ -f /var/lock/subsys/shout ]; then
-               /etc/rc.d/init.d/shout stop >&2
-       fi
+       %service shout stop
        /sbin/chkconfig --del shout >&2
 fi
 
@@ -106,6 +100,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2007/03/31 20:36:15  darekr
+- kill PreReq, use %service
+
 Revision 1.21  2007/02/12 22:09:15  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/shout.spec?r1=1.21&r2=1.22&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to