create rsyslog role which logs everything to /var/log/all.log
This commit is contained in:
parent
e0b519cf21
commit
13f0332fa1
4 changed files with 43 additions and 0 deletions
6
roles/rsyslog/files/logrotate
Normal file
6
roles/rsyslog/files/logrotate
Normal file
|
@ -0,0 +1,6 @@
|
|||
/var/log/all.log {
|
||||
create 0640 root root
|
||||
postrotate
|
||||
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
|
||||
endscript
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue