The officially official Devuan Forum!

You are not logged in.

#1 2023-06-18 18:00:12

bigcat
Member
Registered: 2023-05-10
Posts: 29  

[SOLVED] rsyslog, logrotate

I noticed that on a new chimaera installation after rotating logs, rsyslog continues using the old syslog.1 file.  Did anyone else run into this?  There is probably kill -HUP rsyslog_PID missing somewhere.

Thanks.

Edit: I am using runit as init in case this matters.

Last edited by bigcat (2023-06-18 18:29:49)

Offline

#2 2023-06-18 19:23:13

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,427  

Re: [SOLVED] rsyslog, logrotate

If you installed from a live-iso, see if this file exists:

ls -l /usr/sbin/anacron.orig.anacron

If it does, run the following (as root): 

rm /usr/sbin/anacron
dpkg-divert --rename --remove /usr/sbin/anacron

Offline

#3 2023-06-19 14:20:53

bigcat
Member
Registered: 2023-05-10
Posts: 29  

Re: [SOLVED] rsyslog, logrotate

Thanks for the suggestion.

I used netinstall dvd, and I removed anacron after the install finished.  Using the plain old cron.

Offline

#4 2023-06-21 11:32:03

Lorenzo
Member
Registered: 2020-03-03
Posts: 36  

Re: [SOLVED] rsyslog, logrotate

Edit: I am using runit as init in case this matters.

yes it does: are you running rsyslog with a runit service or as sysv script?

If you use a runit service you may have to add a cronjob with
(assuming that your service is called 'rsyslogd')

sv hup rsyslogd

if you are using the old sysvscript, have a look at /usr/lib/rsyslog/rsyslog-rotate;
recent version of the Debian package are using code that is a noop on non-systemd systems.
if that's the case, you need to create a cron job with

if [ -x /etc/init.d/rsyslog ]; then
    invoke-rc.d rsyslog rotate > /dev/null
fi

I'm not sure if Devuan has it's own version of rsyslog package, but still worth a check

Offline

#5 2023-06-23 13:37:12

bigcat
Member
Registered: 2023-05-10
Posts: 29  

Re: [SOLVED] rsyslog, logrotate

Thank you very much.

I am running rsyslogd with runit.

I added "sv hup rsyslog" to the end of /etc/cron.daily/logrotate file, I expect this should fix the problem.

Offline

Board footer