Added syslog's all.log rotation for Linux
This commit is contained in:
parent
592c53a546
commit
6f17fb9013
2 changed files with 27 additions and 0 deletions
7
syslog/templates/logrotate.erb
Normal file
7
syslog/templates/logrotate.erb
Normal file
|
@ -0,0 +1,7 @@
|
|||
/var/log/all.log {
|
||||
create 0640 root <%= syslog_group %>
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
||||
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
|
||||
endscript
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue