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

audit.spec

index 3e56db85a8c97d975a38a35bf3132315e6b81208..17d0715301fcbeade6e8bea05caea6f38fb793d4 100644 (file)
@@ -24,6 +24,7 @@ BuildRequires:        glibc-headers >= 6:2.4
 BuildRequires: libtool
 BuildRequires: linux-libc-headers >= 2.6.11
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.268
 BuildRequires: swig-python
 Requires(post,preun):  /sbin/chkconfig
 Requires:      %{name}-libs = %{version}-%{release}
@@ -150,17 +151,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add auditd
-if [ -f /var/lock/subsys/auditd ]; then
-       /etc/rc.d/init.d/auditd restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/auditd start\" to start audit daemon." >&2
-fi
+%service auditd restart "audit daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/auditd ]; then
-               /etc/rc.d/init.d/auditd stop >&2
-       fi
+       %service auditd stop
        /sbin/chkconfig --del auditd
 fi
 
This page took 0.203066 seconds and 4 git commands to generate.