Devuan bug report logs - #842
initscripts bug - /etc/init.d/rc.local does not run /etc/rc.shutdown on shutdown

version graph

Package: initscripts; Maintainer for initscripts is Devuan Developers <devuan-dev@lists.dyne.org>; Source for initscripts is src:sysvinit.

Reported by: stratus@tuta.io

Date: Wed, 20 Mar 2024 00:18:01 UTC

Severity: normal

Found in version sysvinit/3.06-4devuan3

Fixed in version 3.09-1devuan1

Done: dak@devuan.org

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#842: initscripts bug - /etc/init.d/rc.local does not run /etc/rc.shutdown on shutdown
Reply-To: Mark Hindley <mark@hindley.org.uk>, 842@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: Wed, 20 Mar 2024 09:26:02 +0000
Resent-Message-ID: <handler.842.B842.17109267365976@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: followup 842
X-Devuan-PR-Package: initscriptsversion: 3.06-4devuan3
X-Devuan-PR-Keywords: 
References: <NtOCcG2--3-9@tuta.io> <NtOCcG2--3-9@tuta.io>
Received: via spool by 842-submit@bugs.devuan.org id=B842.17109267365976
          (code B ref 842); Wed, 20 Mar 2024 09:26:02 +0000
Received: (at 842) by bugs.devuan.org; 20 Mar 2024 09:25:36 +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); Wed, 20 Mar 2024 09:25:36 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id rrNbKVCr+mXUSwAAmSBk0A
	(envelope-from <mark@hindley.org.uk>)
	for <bugs@devuan.org>; Wed, 20 Mar 2024 09:24:32 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 7E2943FA; Wed, 20 Mar 2024 09:24:32 +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 35F745E
	for <842@bugs.devuan.org>; Wed, 20 Mar 2024 09:24:26 +0000 (UTC)
Received: from hindley.org.uk (apollo.hindleynet [192.168.1.3])
	by mx.hindley.org.uk (Postfix) with SMTP id 78C71B7;
	Wed, 20 Mar 2024 09:24:23 +0000 (GMT)
Received: (nullmailer pid 12483 invoked by uid 1000);
	Wed, 20 Mar 2024 09:24:22 -0000
Date: Wed, 20 Mar 2024 09:24:22 +0000
From: Mark Hindley <mark@hindley.org.uk>
To: stratus@tuta.io, 842@bugs.devuan.org
Cc: debian-init-diversity@chiark.greenend.org.uk
Message-ID: <ZfqrRoWUJxcASUqR@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <NtOCcG2--3-9@tuta.io>
Control: reassign -1 initscripts 3.06-4devuan3

Thanks

On Wed, Mar 20, 2024 at 01:15:29AM +0100, stratus@tuta.io wrote:
> Package: initscriptsVersion: 3.06-4devuan3
> The header field for Default-Stop in rc.local is empty so do_stop is never run which means /etc/rc.shutdown isn't run either.
> Modifying these lines thus:
> 
> # Required-Stop :        $all
> # Default-Stop:            0 6
> 
> then running:
> # update-rc.d -f rc.local remove
> # update-rc.d rc.local defaults
> 
> saw it begin to work as expected, don't know if that exact change is ideal for
> all circumstances, but something like that seems to be required.

I added support for rc.shutdown as prompted in #959860[1]. But, I agree,
updating Default-Stop in the LSB header appears to be an omission.

Does anybody see a problem with changing this?

> Also "aptitude show initscripts" says the homepage for the package is
> https://github.com/slicer69/sysvinit but the initscripts aren't hosted there,
> only the sysvinit package itself.

Hmm, that is because bin:initscripts is built from src:sysvinit. I am not sure
that can be easily fixed without separating it out.

[1]  https://bugs.debian.org/959860

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: Mon Nov 25 01:34:13 2024;