Merge "Gracefully restart Apache2 during logrotation"
diff --git a/apache/meta/logrotate.yml b/apache/meta/logrotate.yml
index a9084f3..7fd6e20 100644
--- a/apache/meta/logrotate.yml
+++ b/apache/meta/logrotate.yml
@@ -19,4 +19,4 @@
RESULT=$(( $RANDOM % $RANGE));
RESULT=$(( $RESULT + $RANDOM_START ));
sleep $RESULT
- - postrotate: "if /etc/init.d/apache2 status > /dev/null; then /etc/init.d/apache2 restart > /dev/null; fi"
+ - postrotate: "if /etc/init.d/apache2 status > /dev/null; then (/usr/sbin/apachectl graceful > /dev/null) || (/usr/sbin/apachectl restart > /dev/null); fi"