SPECS: noflushd.spec - use %service
darekr
darekr at pld-linux.org
Sat Mar 31 21:38:37 CEST 2007
Author: darekr Date: Sat Mar 31 19:38:37 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use %service
---- Files affected:
SPECS:
noflushd.spec (1.25 -> 1.26)
---- Diffs:
================================================================
Index: SPECS/noflushd.spec
diff -u SPECS/noflushd.spec:1.25 SPECS/noflushd.spec:1.26
--- SPECS/noflushd.spec:1.25 Tue Feb 13 08:16:49 2007
+++ SPECS/noflushd.spec Sat Mar 31 21:38:32 2007
@@ -12,6 +12,7 @@
Source1: %{name}.init
Source2: %{name}.sysconfig
URL: http://noflushd.sourceforge.net/
+BuildRequires: rpmbuild(macros) >= 1.268
Requires: rc-scripts
Requires(post,preun): /sbin/chkconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -54,18 +55,11 @@
%post
/sbin/chkconfig --add noflushd
-if [ -f /var/lock/subsys/%{name} ]; then
- /etc/rc.d/init.d/%{name} restart 1>&2
-else
- echo "NOTE: Edit /etc/sysconfig/noflushd to configure %{name}."
- echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
-fi
+%service noflushd restart
%preun
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/%{name} ]; then
- /etc/rc.d/init.d/%{name} stop 1>&2
- fi
+ %service noflushd stop
/sbin/chkconfig --del %{name}
fi
@@ -83,6 +77,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.26 2007/03/31 19:38:32 darekr
+- use %service
+
Revision 1.25 2007/02/13 07:16:49 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/noflushd.spec?r1=1.25&r2=1.26&f=u
More information about the pld-cvs-commit
mailing list