UN-pi
2021-05-17 11:40:01 UTC
Package: logrotate
Version: 3.14.0-4
Severity: normal
Tags: newcomer
Dear Maintainer,
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.
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?
-- Package-specific info:
Contents of /etc/logrotate.d
total 100
-rw-r--r-- 1 root root 120 Apr 19 2019 alternatives
-rw-r--r-- 1 root root 442 Jun 18 2020 apache2
-rw-r--r-- 1 root root 173 May 28 2019 apt
-rw-r--r-- 1 root root 79 Feb 13 2019 aptitude
-rw-r--r-- 1 root root 297 Aug 20 2019 asterisk
-rw-r--r-- 1 root root 130 Aug 29 2018 btmp
-rw-r--r-- 1 root root 82 May 26 2018 certbot
-rw-r--r-- 1 root root 112 Apr 19 2019 dpkg
-rw-r--r-- 1 root root 313 Apr 4 2018 fail2ban
-rw-r--r-- 1 root root 234 Mar 1 2018 iaxmodem
-rw-r--r-- 1 root root 419 Jan 28 2019 lighttpd
-rw-r--r-- 1 root root 97 Jun 18 2020 log2ram
-rw-r--r-- 1 root root 802 Jan 29 2020 mysql-server
-r--r--r-- 1 root root 111 May 15 07:45 ncp
-rw-r--r-- 1 root root 182 Nov 11 2020 openvpn
-rw-r--r-- 1 root root 155 Oct 26 2019 php7.3-fpm
-rw-r--r-- 1 root root 1029 Jan 25 2019 psaccs_atop
-rw-r--r-- 1 root root 541 Jan 25 2019 psaccu_atop
-rw-r--r-- 1 root root 124 Jul 10 2019 redis-server
-rw-r--r-- 1 root root 501 Feb 26 2019 rsyslog
-rw-r--r-- 1 root root 891 Sep 2 2019 samba
-rw-r--r-- 1 root root 188 Jun 15 2020 ufw
-rw-r--r-- 1 root root 235 Jun 8 2019 unattended-upgrades
-rw-r--r-- 1 root root 305 Sep 2 2019 winbind
-rw-r--r-- 1 root root 145 Feb 19 2018 wtmp
-- System Information:
Debian Release: 10.9
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: arm64 (aarch64)
Foreign Architectures: armhf
Kernel: Linux 5.10.17-v8+ (SMP w/4 CPU cores; PREEMPT)
Kernel taint flags: TAINT_CRAP
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages logrotate depends on:
ii cron [cron-daemon] 3.0pl1-134+deb10u1
ii libacl1 2.2.53-4
ii libc6 2.28-10
ii libpopt0 1.16-12
ii libselinux1 2.8-1+b1
ii systemd-sysv 241-7~deb10u7
Versions of packages logrotate recommends:
ii bsd-mailx [mailx] 8.1.2-0.20180807cvs-1
logrotate suggests no packages.
-- no debconf information
Version: 3.14.0-4
Severity: normal
Tags: newcomer
Dear Maintainer,
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.
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?
-- Package-specific info:
Contents of /etc/logrotate.d
total 100
-rw-r--r-- 1 root root 120 Apr 19 2019 alternatives
-rw-r--r-- 1 root root 442 Jun 18 2020 apache2
-rw-r--r-- 1 root root 173 May 28 2019 apt
-rw-r--r-- 1 root root 79 Feb 13 2019 aptitude
-rw-r--r-- 1 root root 297 Aug 20 2019 asterisk
-rw-r--r-- 1 root root 130 Aug 29 2018 btmp
-rw-r--r-- 1 root root 82 May 26 2018 certbot
-rw-r--r-- 1 root root 112 Apr 19 2019 dpkg
-rw-r--r-- 1 root root 313 Apr 4 2018 fail2ban
-rw-r--r-- 1 root root 234 Mar 1 2018 iaxmodem
-rw-r--r-- 1 root root 419 Jan 28 2019 lighttpd
-rw-r--r-- 1 root root 97 Jun 18 2020 log2ram
-rw-r--r-- 1 root root 802 Jan 29 2020 mysql-server
-r--r--r-- 1 root root 111 May 15 07:45 ncp
-rw-r--r-- 1 root root 182 Nov 11 2020 openvpn
-rw-r--r-- 1 root root 155 Oct 26 2019 php7.3-fpm
-rw-r--r-- 1 root root 1029 Jan 25 2019 psaccs_atop
-rw-r--r-- 1 root root 541 Jan 25 2019 psaccu_atop
-rw-r--r-- 1 root root 124 Jul 10 2019 redis-server
-rw-r--r-- 1 root root 501 Feb 26 2019 rsyslog
-rw-r--r-- 1 root root 891 Sep 2 2019 samba
-rw-r--r-- 1 root root 188 Jun 15 2020 ufw
-rw-r--r-- 1 root root 235 Jun 8 2019 unattended-upgrades
-rw-r--r-- 1 root root 305 Sep 2 2019 winbind
-rw-r--r-- 1 root root 145 Feb 19 2018 wtmp
-- System Information:
Debian Release: 10.9
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: arm64 (aarch64)
Foreign Architectures: armhf
Kernel: Linux 5.10.17-v8+ (SMP w/4 CPU cores; PREEMPT)
Kernel taint flags: TAINT_CRAP
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8), LANGUAGE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages logrotate depends on:
ii cron [cron-daemon] 3.0pl1-134+deb10u1
ii libacl1 2.2.53-4
ii libc6 2.28-10
ii libpopt0 1.16-12
ii libselinux1 2.8-1+b1
ii systemd-sysv 241-7~deb10u7
Versions of packages logrotate recommends:
ii bsd-mailx [mailx] 8.1.2-0.20180807cvs-1
logrotate suggests no packages.
-- no debconf information