SPECS: protolog.spec - restart service on upgrade and stop (there'...
glen
glen at pld-linux.org
Sun Mar 12 22:58:45 CET 2006
Author: glen Date: Sun Mar 12 21:58:45 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- restart service on upgrade and stop (there's no reason not to)
---- Files affected:
SPECS:
protolog.spec (1.37 -> 1.38)
---- Diffs:
================================================================
Index: SPECS/protolog.spec
diff -u SPECS/protolog.spec:1.37 SPECS/protolog.spec:1.38
--- SPECS/protolog.spec:1.37 Sun Mar 12 22:54:49 2006
+++ SPECS/protolog.spec Sun Mar 12 22:58:40 2006
@@ -13,6 +13,7 @@
Source2: %{name}.conf
Source3: %{name}.init
Patch0: %{name}-1.0.8.make.diff
+BuildRequires: rpmbuild(macros) >= 1.268
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -56,9 +57,11 @@
%post
/sbin/chkconfig --add protolog
+%service protolog restart
%preun
if [ "$1" = "0" ]; then
+ %service protolog stop
/sbin/chkconfig --del protolog
fi
@@ -80,6 +83,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.38 2006/03/12 21:58:40 glen
+- restart service on upgrade and stop (there's no reason not to)
+
Revision 1.37 2006/03/12 21:54:49 glen
- init and config moved to SOURCES
- pass CC
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/protolog.spec?r1=1.37&r2=1.38&f=u
More information about the pld-cvs-commit
mailing list