add file control for main log files
This commit is contained in:
13
templates/logrotate.rsyslog.erb
Normal file
13
templates/logrotate.rsyslog.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
/var/log/cron
|
||||
/var/log/maillog
|
||||
/var/log/messages
|
||||
/var/log/secure
|
||||
/var/log/spooler
|
||||
{
|
||||
create 0640 root adm
|
||||
missingok
|
||||
sharedscripts
|
||||
postrotate
|
||||
/usr/bin/systemctl -s HUP kill rsyslog.service >/dev/null 2>&1 || true
|
||||
endscript
|
||||
}
|
||||
Reference in New Issue
Block a user