]> git.pld-linux.org Git - packages/apmud.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 14 Apr 2006 17:40:01 +0000 (17:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apmud.spec -> 1.5

apmud.spec

index 3dd710d6c435426122e3f9d34fd073db9706ffad..c5ac62dabb5ba143942849e097c2764fef3a38d8 100644 (file)
@@ -10,6 +10,7 @@ Source0:      http://linuxppc.jvc.nl/%{name}-%{version}.tgz
 Source1:       %{name}.init
 Patch0:                %{name}-pwrctl.patch
 URL:           http://linuxppc.jvc.nl/
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      dev
 Requires:      hdparm
@@ -60,17 +61,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add pmud
-if [ -f /var/lock/subsys/pmud ]; then
-       /etc/rc.d/init.d/pmud restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/pmud start\" to start pmud daemon."
-fi
+%service pmud restart "pmud daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/pmud ]; then
-               /etc/rc.d/init.d/pmud stop >&2
-       fi
+       %service pmud stop
        /sbin/chkconfig --del pmud
 fi
 
This page took 0.062384 seconds and 4 git commands to generate.