Control: notfixed -1 logrotate/3.18.0-2 Control: reassign -1 src:rsyslog Control: tags -1 -newcomer Control: affects -1 logrotate
> I noticed that some log files in /var/log are not being rotated. > e.g. kern.log, syslog etc. > There are no files ending with .1 or .gz. The files keep getting bigger. > Are there any relevant logs from logrotate (i.e. `journalctl -u logrotate`)? Do you still have a system with this issue and be able to run `logrotate -v /etc/logrotate.conf` on it? > I found on the internet: > https://askubuntu.com/questions/695999/var-log-syslog-not-rotating. > > After I make the change it seems to work. > Extract from the website: > " > Based on Samuel's comment, modified /usr/lib/rsyslog/rsyslog-rotate > #!/bin/sh > > if [-d /run/systemd/system]; then > systemctl kill -s HUP --kill-who = main rsyslog.service > else > invoke-rc.d rsyslog rotate> /dev/null > fi > " > > Is it a bug or do I have an understanding problem somewhere? > I am not quite sure why changing this script resolved your issue, it might solve rsyslog writing to the old log files but logrotate should have created a `.1` file. As the configuration of kern.log and syslog in /etc/logrotate.d/rsyslog and the script /usr/lib/rsyslog/rsyslog-rotate are part of src:rsyslog, I am reassigning the bug. p.s.: the tag newcomer is meant for bugs to be resolved by newcomers, see https://www.debian.org/Bugs/Developer#tags