Package: rsyslog
Version: 8.2302.0-1
Severity: wishlist
X-Debbugs-Cc: [email protected]
Dear Maintainer,
in bookworm, logrotate post-action does not work under sysvinit, because
/usr/lib/rsyslog/rsyslog-rotate invokes systemctl in order to send SIGHUP
to the daemon.
A workaround is to install orphan-sysvinit-scripts, which diverts
/usr/lib/rsyslog/rsyslog-rotate to the old, working version.
A fix would be:
1. drop "-iNONE" from /lib/systemd/system/rsyslog.service, to make rsyslogd
write its pidfile: not used for supervision, yet harmless;
2. replace the code in /usr/lib/rsyslog/rsyslog-rotate with
pkill -HUP -F /run/rsyslogd.pid rsyslogd
This way, logrotate's post-action works under both systemd and sysvinit.
Best regards
g.b.
-- System Information:
Debian Release: 12.0
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.1.0-10-cloud-amd64 (SMP w/1 CPU thread; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages rsyslog depends on:
ii libc6 2.36-9
ii libestr0 0.1.11-1
ii libfastjson4 1.2304.0-1
ii liblognorm5 2.0.6-4
ii libsystemd0 252.6-1
ii libuuid1 2.38.1-5+b1
ii libzstd1 1.5.4+dfsg2-5
ii zlib1g 1:1.2.13.dfsg-1
Versions of packages rsyslog recommends:
ii logrotate 3.21.0-1
Versions of packages rsyslog suggests:
pn rsyslog-doc <none>
pn rsyslog-gssapi <none>
pn rsyslog-mongodb <none>
pn rsyslog-mysql | rsyslog-pgsql <none>
pn rsyslog-openssl | rsyslog-gnutls <none>
pn rsyslog-relp <none>
-- Configuration Files:
/etc/logrotate.d/rsyslog changed [not included]
-- no debconf information