]> git.pld-linux.org Git - packages/apache1-mod_suphp.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 14 Apr 2006 17:03:25 +0000 (17:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-mod_suphp.spec -> 1.6

apache1-mod_suphp.spec

index a840ae2ed343167e145bd3060d142ed4ca6ae4c0..76cfbe76c1342e0f566ae6211f28494e3fb97435 100644 (file)
@@ -83,15 +83,11 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/apache-mod_suphp
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/apache ]; then
-       /etc/rc.d/init.d/apache restart 1>&2
-fi
+%service -q apache restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+       %service -q apache restart
 fi
 
 # TODO remove the trigger, if no longer needed
@@ -102,9 +98,7 @@ if grep -q '^Include conf\.d' /etc/apache/apache.conf; then
                /^Include.*mod_%{mod_name}\.conf/d
        ' /etc/apache/apache.conf
 
-       if [ -f /var/lock/subsys/apache ]; then
-               /etc/rc.d/init.d/apache restart 1>&2
-       fi
+       %service -q apache restart
 fi
 
 %files
This page took 0.065209 seconds and 4 git commands to generate.