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

anubis.spec

index ec572be413579f06096aa7a471adada70d5e7b83..8d900524f17a70824b08fc4fcfae6a79a0d57b9a 100644 (file)
@@ -35,6 +35,7 @@ BuildRequires:        guile-devel >= 5:1.6
 %{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7d}
 %{?with_postgres:BuildRequires:        postgres-devel}
 BuildRequires: rpm-perlprov
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: texinfo
 Requires(post,preun):  /sbin/chkconfig
 Requires:      identserver
@@ -143,19 +144,13 @@ rm -fr $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add anubis
-if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
-       /etc/rc.d/init.d/anubis restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/anubis start\" to start anubis." >&2
-fi
+%service anubis restart
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f %{_localstatedir}/lock/subsys/anubis ]; then
-               /etc/rc.d/init.d/anubis stop
-       fi
+       %service anubis stop
        /sbin/chkconfig --del anubis
 fi
 
This page took 0.120526 seconds and 4 git commands to generate.