From cf4f93b95da28974066a286f1aa776d496478ad3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Fri, 24 Feb 2006 15:20:04 +0000 Subject: [PATCH] - use %service Changed files: arpd.spec -> 1.31 --- arpd.spec | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/arpd.spec b/arpd.spec index 1e8a4ff..6464e12 100644 --- a/arpd.spec +++ b/arpd.spec @@ -19,10 +19,11 @@ Patch2: %{name}-makefile-patch Patch3: %{name}-more_tables.patch Patch4: %{name}-uid.patch #URL: http://www.loran.com/~layes/arpd/ -Prereq: fileutils -Prereq: rc-scripts >= 0.2.0 +BuildRequires: rpmbuild(macros) >= 1.268 Requires(post,preun): /sbin/chkconfig Requires: dev >= 2.8.0-4 +Requires: fileutils +Requires: rc-scripts >= 0.2.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -70,17 +71,11 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add arpd -if [ -f /var/lock/subsys/arpd ]; then - /etc/rc.d/init.d/arpd restart 1>&2 -else - echo "Run \"/etc/rc.d/init.d/arpd start\" to start arpd daemon." -fi +%service arpd restart "arpd daemon" %preun if [ "$1" = "0" ]; then - if [ -f /var/lock/subsys/arpd ]; then - /etc/rc.d/init.d/arpd stop 1>&2 - fi + %service aprd stop /sbin/chkconfig --del arpd fi -- 2.43.0