]> git.pld-linux.org Git - packages/apinger.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 24 Feb 2006 15:20:04 +0000 (15:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apinger.spec -> 1.23

apinger.spec

index ceb4711adbf7cdf5abea4bdd4c49c93a245652d8..f0c169caa9f6a78091a505c45b63369653cb3cd6 100644 (file)
@@ -11,8 +11,9 @@ Source1:      %{name}.init
 Source2:       %{name}.sysconf
 Patch0:                %{name}-user.patch
 URL:           http://www.bnet.pl/~jajcus/
-PreReq:                rc-scripts
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -60,18 +61,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add apinger
-
-if [ -f /var/lock/subsys/apinger ]; then
-       /etc/rc.d/init.d/apinger restart 1>&2
-else
-       echo "Type \"/etc/rc.d/init.d/apinger start\" to start apinger" 1>&2
-fi
+%service apinger restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/apinger ]; then
-               /etc/rc.d/init.d/apinger stop 1>&2
-       fi
+       %service apinger stop
        /sbin/chkconfig --del apinger
 fi
 
This page took 0.116378 seconds and 4 git commands to generate.