SPECS: pound.spec - use %service, fixed upgrade script, rel 2
glen
glen at pld-linux.org
Sun Mar 12 22:39:06 CET 2006
Author: glen Date: Sun Mar 12 21:39:06 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service, fixed upgrade script, rel 2
---- Files affected:
SPECS:
pound.spec (1.38 -> 1.39)
---- Diffs:
================================================================
Index: SPECS/pound.spec
diff -u SPECS/pound.spec:1.38 SPECS/pound.spec:1.39
--- SPECS/pound.spec:1.38 Sun Mar 5 11:14:37 2006
+++ SPECS/pound.spec Sun Mar 12 22:39:00 2006
@@ -3,7 +3,7 @@
Summary(pl): Pound - reverse-proxy i load-balancer
Name: pound
Version: 1.10
-Release: 1
+Release: 2
License: GPL
Group: Networking/Daemons
Vendor: Robert Segall <roseg at apsis.ch>
@@ -59,17 +59,13 @@
%post
/sbin/chkconfig --add %{name}
-if [ -f %{_var}/lock/subsys/%{name} ]; then
- /etc/rc.d/init.d/%{name} restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
-fi
+%service %{name} restart "%{name} daemon"
%preun
-if [ "$1" = "0" -a -f %{_var}/lock/subsys/%{name} ]; then
- /etc/rc.d/init.d/%{name} stop 1>&2
+if [ "$1" = "0" ]; then
+ %service %{name} stop
+ /sbin/chkconfig --del %{name}
fi
-/sbin/chkconfig --del %{name}
%files
%defattr(644,root,root,755)
@@ -86,6 +82,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.39 2006/03/12 21:39:00 glen
+- use %service, fixed upgrade script, rel 2
+
Revision 1.38 2006/03/05 10:14:37 darekr
- pass CC
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/pound.spec?r1=1.38&r2=1.39&f=u
More information about the pld-cvs-commit
mailing list