Use 'restart' instead of 'reload' in logrotate postrotate stage
Using 'reload' causes Apache2 service to fail and exit sporadically
after the logs are rotated. To avoid that, it is recommended to use
'restart' command instead.
Change-Id: I8f2e678ef27c6605e2b9a4a5a352e92ad5364087
Related-PROD: PROD-22983
diff --git a/apache/meta/logrotate.yml b/apache/meta/logrotate.yml
index 24135e6..a9084f3 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 reload > /dev/null; fi"
\ No newline at end of file
+ - postrotate: "if /etc/init.d/apache2 status > /dev/null; then /etc/init.d/apache2 restart > /dev/null; fi"