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

fakebo.spec

index a3fbf9ba4366db19e9ce630a1b803c7f4ddf861b..18222b1bd7f69aa7be39b9f5b6c71cffc4a97217 100644 (file)
@@ -10,8 +10,9 @@ Source0:      ftp://ftp.linux.hr/pub/fakebo/%{name}-%{version}.tar.gz
 Source1:       %{name}.init
 URL:           http://cvs.linux.hr/fakebo/
 BuildRequires: autoconf
-Requires:      rc-scripts
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -47,18 +48,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add fakebo
-if [ -f /var/lock/subsys/fakebo ]; then
-       /etc/rc.d/init.d/fakebo restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/fakebo start\" to start fakebo daemon."
-fi
-
+%service fakebo restart "fakebo daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/fakebo ]; then
-               /etc/rc.d/init.d/fakebo stop 1>&2
-       fi
+       %service fakebo stop
        /sbin/chkconfig --del fakebo
 fi
 
This page took 0.106394 seconds and 4 git commands to generate.