]> git.pld-linux.org Git - packages/bjorb.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:
    bjorb.spec -> 1.9

bjorb.spec

index 8e1094c68a176434cedf5e6365b934900378885c..d59bf9ab6bddf281443884d00dc34a18170e9385 100644 (file)
@@ -15,6 +15,7 @@ URL:          http://www.hitachi-ms.co.jp/bjorb/
 BuildRequires: autoconf
 BuildRequires: libstdc++-devel
 BuildRequires: openssl-devel
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -67,17 +68,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /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 Bjorb daemon."
-fi
+%service %{name} restart "Bjorb daemon"
 
 %preun
 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.090248 seconds and 4 git commands to generate.