apache: Log rotation requires lsof.
This commit is contained in:
parent
d9851631bb
commit
7d9dce035f
2 changed files with 13 additions and 0 deletions
|
@ -5,6 +5,8 @@ import "redhat.pp"
|
|||
#
|
||||
class apache::common {
|
||||
|
||||
include lsof
|
||||
|
||||
case $::operatingsystem {
|
||||
debian,ubuntu: {
|
||||
if ! $httpd_user {
|
||||
|
@ -80,6 +82,7 @@ class apache::common {
|
|||
owner => "root",
|
||||
group => "root",
|
||||
seltype => "httpd_rotatelogs_exec_t",
|
||||
require => Package["lsof"],
|
||||
}
|
||||
if $::operatingsystem == "Fedora" and $::operatingsystemrelease > 17 {
|
||||
selinux::manage_fcontext { "/usr/sbin/www-logrotate.sh":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue