- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 16 Apr 2006 20:18:47 +0000 (20:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    atm.spec -> 1.40

atm.spec

index 9f51dca..8eec651 100644 (file)
--- a/atm.spec
+++ b/atm.spec
@@ -1,4 +1,4 @@
-# $Revision: 1.39 $ $Date: 2006-01-21 00:01:16 $
+# $Revision: 1.40 $ $Date: 2006-04-16 20:18:47 $
 Summary:       ATM on Linux
 Summary(pl):   Obs³uga sieci ATM w Linuksie
 Name:          atm
@@ -13,6 +13,7 @@ Source1:      %{name}-pldrc.tar.gz
 Patch0:                %{name}-opt.patch
 Patch1:                %{name}-OPEN_MAX.patch
 URL:           http://ica1www.epfl.ch/linux-atm/
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -91,15 +92,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add atm
-if [ -f /var/lock/subsys/atm ]; then
-       /etc/rc.d/init.d/atm restart 1>&2
-fi
+%service atm restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/atm ]; then
-               /etc/rc.d/init.d/atm stop 1>&2
-       fi
+       %service atm stop
        /sbin/chkconfig --del atm
 fi
 
This page took 0.100247 seconds and 4 git commands to generate.