mirror of
/repos/baseimage-docker.git
synced 2026-02-27 17:41:59 +01:00
Redirect syslog to 'docker logs' and fix cron
Closes GH-123. Closes GH-115.
This commit is contained in:
38
image/config/logrotate_syslogng
Normal file
38
image/config/logrotate_syslogng
Normal file
@@ -0,0 +1,38 @@
|
||||
/var/log/syslog
|
||||
{
|
||||
rotate 7
|
||||
daily
|
||||
missingok
|
||||
notifempty
|
||||
delaycompress
|
||||
compress
|
||||
postrotate
|
||||
sv reload syslog-ng > /dev/null
|
||||
endscript
|
||||
}
|
||||
|
||||
/var/log/mail.info
|
||||
/var/log/mail.warn
|
||||
/var/log/mail.err
|
||||
/var/log/mail.log
|
||||
/var/log/daemon.log
|
||||
/var/log/kern.log
|
||||
/var/log/auth.log
|
||||
/var/log/user.log
|
||||
/var/log/lpr.log
|
||||
/var/log/cron.log
|
||||
/var/log/debug
|
||||
/var/log/messages
|
||||
{
|
||||
rotate 4
|
||||
weekly
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
postrotate
|
||||
sv reload syslog-ng > /dev/null
|
||||
sv restart cron-log-forwarder > /dev/null
|
||||
endscript
|
||||
}
|
||||
Reference in New Issue
Block a user