The officially official Devuan Forum!

You are not logged in.

#1 2024-03-11 05:53:29

kinmen
Member
Registered: 2024-01-20
Posts: 14  

problem with rsyslog during cron jobs

Hello, since I migrated my Debian server to Daedalus, I keep getting the following :

/etc/cron.daily/logrotate:
/usr/lib/rsyslog/rsyslog-rotate: riga 6: invoke-rc.d: command not found
error: error running shared postrotate script for '/var/log/syslog
/var/log/mail.log
/var/log/kern.log
/var/log/auth.log
/var/log/user.log
/var/log/cron.log
'
run-parts: /etc/cron.daily/logrotate exited with return code 1

The "invoke-rc.d: command not found" error occurs in other cron jobs too, for example with nginx script

Is that because those are the old Debian scripts? I speculate invoke-rc.d shouldn't be there...

thank you
Kinmen

Offline

#2 2024-03-11 15:28:44

Geoff 42
Member
Registered: 2016-12-15
Posts: 462  

Re: problem with rsyslog during cron jobs

I find that I have :-

/usr/local/sbin/invoke-rc.d

which is dated Apr 2 2020.
I am trying to remember how it got there. I recall that I had been receiving "command not found" error messages.

I have been checking in my records, and I found it when I was trying OpenRC. At that time invoke-rc lived in /usr/sbin.

Geoff

Offline

#3 2024-03-11 18:51:55

kinmen
Member
Registered: 2024-01-20
Posts: 14  

Re: problem with rsyslog during cron jobs

which  invoke-rc.d returns /usr/sbin/invoke-rc.d, I guess the user who runs the rsyslog command doesn't have access to /usr/sbin... should I edit all the scripts invoking rsyslog-rotate?

Offline

Board footer