]> git.pld-linux.org Git - packages/bnc.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 16 Apr 2006 20:52:33 +0000 (20:52 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bnc.spec -> 1.39

bnc.spec

index 8f4d25b0a2694b142a200f36fd9e1bcb450e29c8..ca3100c4fb32a231e7995bd678efe4b2516d1e1a 100644 (file)
--- a/bnc.spec
+++ b/bnc.spec
@@ -18,7 +18,7 @@ URL:          http://www.gotbnc.com/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: openssl-devel
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires:      dialog >= 1:0.69
 Provides:      group(bnc)
 Provides:      user(bnc)
@@ -105,20 +105,12 @@ EOF
 # ' vim
 
 fi
-
 /sbin/chkconfig --add %{name}
-
-if [ -f /var/lock/subsys/%{name} ]; then
-       /etc/rc.d/init.d/%{name} restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
-fi
+%service %{name} restart "%{name} daemon"
 
 %preun init
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/%{name} ]; then
-               /etc/rc.d/init.d/%{name} stop 1>&2
-       fi
+       %service %{name} stop
        /sbin/chkconfig --del %{name}
 fi
 
This page took 0.607915 seconds and 4 git commands to generate.