- System Debian 9
- Imscp 1.5.1
/etc/logrotate.d/rsyslog
Code
- /var/log/syslog{ rotate 7 daily missingok notifempty delaycompress compress postrotate invoke-rc.d --quiet rsyslog rotate > /dev/null endscript}/var/log/mail.info/var/log/mail.warn/var/log/mail.err/var/log/mail.log{ rotate 7 daily missingok notifempty compress delaycompress sharedscripts postrotate invoke-rc.d --quiet rsyslog rotate > /dev/null endscript}/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 daily missingok notifempty compress delaycompress sharedscripts postrotate invoke-rc.d --quiet rsyslog rotate > /dev/null endscript}
Mail from System:
Code
- /etc/cron.daily/logrotate:
- error: syslog-ng:1 duplicate log entry for /var/log/syslog
- /usr/sbin/invoke-rc.d: 591: /usr/sbin/invoke-rc.d: /etc/init.d/rsyslog: not found
- error: error running non-shared postrotate script for /var/log/syslog of '/var/log/syslog
- '
- /usr/sbin/invoke-rc.d: 591: /usr/sbin/invoke-rc.d: /etc/init.d/rsyslog: not found
- error: error running shared postrotate script for '/var/log/mail.info
- /var/log/mail.warn
- /var/log/mail.err
- /var/log/mail.log
- '
- /usr/sbin/invoke-rc.d: 591: /usr/sbin/invoke-rc.d: /etc/init.d/rsyslog: not found
- error: error running shared postrotate script for '/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
- '
- run-parts: /etc/cron.daily/logrotate exited with return code 1