Subject: bug#884: /etc/logrotate.d/ulogd2: Questionable use of invoke-rc.d

From: Opty <[email-masked]>
Date: Tue, 1 Apr 2025 14:47:49 +0200

Package: ulogd2
Version: 2.0.8-1

/etc/logrotate.d/ulogd2 uses invoke-rc.d to notify ulogd2 to reopen
logs but it doesn't work when using policy-rcd-declarative-deny-all so
shouldn't the logrotate configuration snippet use rather 'service' ?

Regards,
Opty

---

From: Mark Hindley <[email-masked]>
Date: Tue, 1 Apr 2025 17:44:39 +0100

Control: tags -1 debian

Opty,

> shouldn't the logrotate configuration snippet use rather 'service' ?

Possibly, but I am not sure. Certainly all the other /etc/logrotate.d examples I
can find use invoke-rc.d. It may be to prevent rotation in chroots and the like
when it would fail. Also, if you have prevented services from starting int he
first place, there is no need to rotate the logs later. Why do you have
policy-rcd-declarative-deny-all installed? What is your intention in doing that?
                                                                                                                                                           
However, I am sure that ulogd2 isn't forked in Devuan and so this should be
reported directly to Debian's BTS if you really think there is an issue.

Mark

---

From: Opty <[email-masked]>
Date: Wed, 2 Apr 2025 14:00:35 +0200

> policy-rcd-declarative-deny-all installed? What is your intention in doing that?

Please see #881 or should I copy the story here as well?

> reported directly to Debian's BTS if you really think there is an issue.

Now that Debian uses systemd by default I considered Devuan a better
place for System V style init stuff but I will think about reporting
to Debian BTS then.

Regards,
Opty

---

From: Mark Hindley <[email-masked]>
Date: Wed, 2 Apr 2025 17:10:57 +0100

Control: forcemerge 881 -1

> Please see #881 or should I copy the story here as well?

No. Really these are all the same issue. I will merge them for now while we look
at the detail.

Mark