Restart apache2 on logrotate on ask.o.o

When apache2 gets reloaded multiple times in quick succession, it may
crash and fail completely. Lately this has been seen very often on our
ask.openstack.org instance, so let us use the more intrusive, but also
hopefully more stable in the end result method of restarting instead.

Change-Id: I44e4561f8696415471f65b75d683c48636fb413f
This commit is contained in:
Jens Harbott 2019-11-13 15:54:50 +00:00
parent 16c06894ef
commit 1dcba08f5b
1 changed files with 4 additions and 0 deletions

View File

@ -187,5 +187,9 @@ class openstack_project::ask (
'notifempty',
'create 640 root adm',
],
postrotate => [
"if service ${::httpd::params::apache_name} status > /dev/null; then \\",
" service ${::httpd::params::apache_name} restart > /dev/null; fi; \\",
],
}
}