You are not logged in.
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
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
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