]> git.pld-linux.org Git - packages/nginx.git/commitdiff
- nginx.logrotate should reload both nginx-light and nginx-standard
authorAdam Osuchowski <adwol@pld-linux.org>
Sun, 27 Nov 2011 21:13:32 +0000 (21:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  since these could be installed at the same time

Changed files:
    nginx.logrotate -> 1.3

nginx.logrotate

index f705d46f5a295e3c21f96b7ccca8447bea7cf0b2..725a01c6eeaa517f2db4ae3e3ce8c2c5cd98067b 100644 (file)
@@ -3,6 +3,11 @@
        create 644 nginx nginx
        sharedscripts
        postrotate
-               /sbin/service nginx graceful > /dev/null
+               if [ -x /etc/rc.d/init.d/nginx-light ] ; then
+                       /sbin/service nginx-light graceful > /dev/null
+               fi
+               if [ -x /etc/rc.d/init.d/nginx-standard ] ; then
+                       /sbin/service nginx-standard graceful > /dev/null
+               fi
        endscript
 }
This page took 0.117941 seconds and 4 git commands to generate.