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

version graph

Package: init-system-helpers; Maintainer for init-system-helpers is Devuan Dev Team <devuan-dev@lists.dyne.org>; Source for init-system-helpers is src:init-system-helpers.

Reported by: Opty <opty77@gmail.com>

Date: Tue, 1 Apr 2025 12:50:15 UTC

Severity: normal

Tags: debian, moreinfo

Merged with 881, 882, 883

Found in version init-system-helpers/1.65.2devuan1

Done: Mark Hindley <mark@hindley.org.uk>

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#884: /etc/logrotate.d/ulogd2: Questionable use of invoke-rc.d
Reply-To: Mark Hindley <mark@hindley.org.uk>, 884@bugs.devuan.org
Resent-From: Mark Hindley <mark@hindley.org.uk>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: devuan-dev@lists.dyne.org
X-Loop: owner@bugs.devuan.org
Resent-Date: Tue, 01 Apr 2025 16:46:16 +0000
Resent-Message-ID: <handler.884.B884.174352591928255@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: followup 884
X-Devuan-PR-Package: ulogd2
X-Devuan-PR-Keywords: 
References: <CAERDJOGtf3XB+nLODWsNRBYxsYeWkvupTssK-_w=DrdUS08cXQ@mail.gmail.com> <CAERDJOGtf3XB+nLODWsNRBYxsYeWkvupTssK-_w=DrdUS08cXQ@mail.gmail.com>
Received: via spool by 884-submit@bugs.devuan.org id=B884.174352591928255
          (code B ref 884); Tue, 01 Apr 2025 16:46:16 +0000
Received: (at 884) by bugs.devuan.org; 1 Apr 2025 16:45:19 +0000
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Tue, 01 Apr 2025 16:45:19 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id QODVJ/kX7Ge7RwAAmSBk0A
	(envelope-from <mark@hindley.org.uk>)
	for <bugs@devuan.org>; Tue, 01 Apr 2025 16:44:41 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 6F01F5A0; Tue,  1 Apr 2025 16:44:41 +0000 (UTC)
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=193.36.131.86; helo=mx.hindley.org.uk; envelope-from=mark@hindley.org.uk; receiver=<UNKNOWN> 
Received: from mx.hindley.org.uk (193-36-131-86.cfwn.uk [193.36.131.86])
	by email.devuan.org (Postfix) with ESMTPS id CDB043AD
	for <884@bugs.devuan.org>; Tue,  1 Apr 2025 16:44:40 +0000 (UTC)
Received: from hindley.org.uk (apollo.hindleynet [192.168.1.3])
	by mx.hindley.org.uk (Postfix) with SMTP id 10C74130;
	Tue,  1 Apr 2025 17:44:40 +0100 (BST)
Received: (nullmailer pid 13881 invoked by uid 1000);
	Tue, 01 Apr 2025 16:44:39 -0000
Date: Tue, 1 Apr 2025 17:44:39 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: Opty <opty77@gmail.com>, 884@bugs.devuan.org
Message-ID: <Z-wX9-KBTHMnyKom@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAERDJOGtf3XB+nLODWsNRBYxsYeWkvupTssK-_w=DrdUS08cXQ@mail.gmail.com>
Control: tags -1 debian

Opty,

On Tue, Apr 01, 2025 at 02:47:49PM +0200, Opty wrote:
> 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' ?

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
                                              

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Fri Apr 11 05:52:01 2025;