We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following entries are in the system journal (journalctl --system) on Bookworm. Haven't checked prior Pi OS's.
journalctl --system
Dec 22 00:00:01 allsky logrotate[1042043]: /usr/sbin/invoke-rc.d: 538: /etc/init.d/rsyslog: not found Dec 22 00:00:01 allsky logrotate[1042040]: invoke-rc.d: initscript rsyslog, action "rotate" failed. Dec 22 00:00:01 allsky logrotate[1042031]: error: error running shared postrotate script for '/var/log/allsky.log Dec 22 00:00:01 allsky logrotate[1042031]: ' Dec 22 00:00:02 allsky logrotate[1042050]: /usr/sbin/invoke-rc.d: 538: /etc/init.d/rsyslog: not found Dec 22 00:00:02 allsky logrotate[1042047]: invoke-rc.d: initscript rsyslog, action "rotate" failed. Dec 22 00:00:02 allsky logrotate[1042031]: error: error running shared postrotate script for '/var/log/allskyperiodic.log'
The text was updated successfully, but these errors were encountered:
Other scripts have this:
/usr/lib/rsyslog/rsyslog-rotate
whereas allsky.logrotate.repo has:
invoke-rc.d rsyslog rotate > /dev/null
The AI response above has:
systemctl kill -s HUP rsyslog.service
Sorry, something went wrong.
I have added a couple of fixes to my Allsky and will test them over the next few days before committing them
#4109 Fix logrotate
29f0ca1
Changed logrotate config
Tested over a few days on my pi and is fine
To test this you must set the logs to rotate daily otherwise you will have to wait a week to see if its worked !
Daily rotation
/var/log/allsky.log { rotate 2 daily missingok notifempty compress delaycompress sharedscripts postrotate systemctl kill -s HUP rsyslog.service endscript } /var/log/allskyperiodic.log { rotate 2 daily missingok notifempty compress delaycompress sharedscripts postrotate systemctl kill -s HUP rsyslog.service endscript }
Merge pull request #4124 from AllskyTeam/4109-bug-allskylogrotaterepo…
4ecec90
…-fails-on-bookworm #4109 Fix logrotate
Alex-developer
When branches are created from issues, their pull requests are automatically linked.
The following entries are in the system journal (
journalctl --system
) on Bookworm.Haven't checked prior Pi OS's.
The text was updated successfully, but these errors were encountered: