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:
parent
16c06894ef
commit
1dcba08f5b
@ -187,5 +187,9 @@ class openstack_project::ask (
|
|||||||
'notifempty',
|
'notifempty',
|
||||||
'create 640 root adm',
|
'create 640 root adm',
|
||||||
],
|
],
|
||||||
|
postrotate => [
|
||||||
|
"if service ${::httpd::params::apache_name} status > /dev/null; then \\",
|
||||||
|
" service ${::httpd::params::apache_name} restart > /dev/null; fi; \\",
|
||||||
|
],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user