The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 16:54:04

dgiglio
Member
Registered: 2024-02-17
Posts: 5  

syslog not being rotated

The first entry in /var/log/syslog dates back to October 2025, and the file takes now more than 150MB

The content of /etc/logrotate.d/rsyslog is

/var/log/syslog
/var/log/mail.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/cron.log
{
	rotate 4
	weekly
	missingok
	notifempty
	compress
	delaycompress
	sharedscripts
	postrotate
		/usr/lib/rsyslog/rsyslog-rotate
	endscript
}

while /usr/lib/rsyslog/rsyslog-rotate contains

#!/bin/sh

if [ -d /run/systemd/system ]; then
    systemctl kill -s HUP --kill-whom=main rsyslog.service
else
    invoke-rc.d rsyslog rotate > /dev/null
fi

Any clue?

Offline

#2 Yesterday 17:02:23

rolfie
Member
Registered: 2017-11-25
Posts: 1,428  

Re: syslog not being rotated

Have a look:
https://dev1galaxy.org/viewtopic.php?id=5763

I have some notes (unfortunately in German) what I did on modifications on my PC.

Last edited by rolfie (Yesterday 17:02:41)

Offline

Board footer