Witam.
Na jednym z serwerów mam skonfigurowany skrypt logrotate’a aby rotował mi logami. Niestety kiedy cron odpali logrotate’a dostaję mail z błędem. Jakieś propozycje co z tym zrobić.
/etc/cron.daily/logrotate:
initctl: invalid command: rotate
Try `initctl --help' for more information.
invoke-rc.d: initscript rsyslog, action "rotate" failed.
error: error running non-shared postrotate script for /var/log/iptables.log of '/var/log/iptables.log
'
initctl: invalid command: rotate
Try `initctl --help' for more information.
invoke-rc.d: initscript rsyslog, action "rotate" failed.
error: error running non-shared postrotate script for /var/www/motoceny.naturaily.eu/current/log/deployment_unicorn.log of '/var/www/motoceny.naturaily.eu/current/log/deployment_unicorn.log
'
initctl: invalid command: rotate
Try `initctl --help' for more information.
invoke-rc.d: initscript rsyslog, action "rotate" failed.
error: error running non-shared postrotate script for /var/www/motoceny.naturaily.eu/current/log/newrelic_agent.log of '/var/www/motoceny.naturaily.eu/current/log/newrelic_agent.log
'
initctl: invalid command: rotate
Try `initctl --help' for more information.
invoke-rc.d: initscript rsyslog, action "rotate" failed.
error: error running non-shared postrotate script for /var/www/motoceny.naturaily.eu/current/log/production.log of '/var/www/motoceny.naturaily.eu/current/log/production.log
'
initctl: invalid command: rotate
Try `initctl --help' for more information.
invoke-rc.d: initscript rsyslog, action "rotate" failed.
error: error running non-shared postrotate script for /home/backups/logs/pg_backup.log of '/home/backups/logs/pg_backup.log
'
initctl: invalid command: rotate
Try `initctl --help' for more information.
invoke-rc.d: initscript rsyslog, action "rotate" failed.
error: error running non-shared postrotate script for /home/backups/logs/pg_backup_rotate.log of '/home/backups/logs/pg_backup_rotate.log
'
run-parts: /etc/cron.daily/logrotate exited with return code 1