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: stratus@tuta.io, 842@bugs.devuan.org
Resent-From: stratus@tuta.io
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 00:18:01 +0000
Resent-Message-ID: <handler.842.B.171089379425906@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: report 842
X-Devuan-PR-Package: initscriptsversion: 3.06-4devuan3
X-Devuan-PR-Keywords: 
Received: via spool by submit@bugs.devuan.org id=B.171089379425906
          (code B); Wed, 20 Mar 2024 00:18:01 +0000
Received: (at submit) by bugs.devuan.org; 20 Mar 2024 00:16:34 +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 00:16:34 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id HoPhGKkq+mX6MgAAmSBk0A
	(envelope-from <stratus@tuta.io>)
	for <bugs@devuan.org>; Wed, 20 Mar 2024 00:15:37 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id 39E6E4A0; Wed, 20 Mar 2024 00:15:36 +0000 (UTC)
Authentication-Results: email.devuan.org;
	dkim=pass (2048-bit key; secure) header.d=tuta.io header.i=@tuta.io header.a=rsa-sha256 header.s=s1 header.b=g+6KsE/a;
	dkim-atps=neutral
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_PASS,
	T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=81.3.6.162; helo=w1.tutanota.de; envelope-from=stratus@tuta.io; receiver=<UNKNOWN> 
Received: from w1.tutanota.de (w1.tutanota.de [81.3.6.162])
	by email.devuan.org (Postfix) with ESMTPS id 4366A1F7
	for <submit@bugs.devuan.org>; Wed, 20 Mar 2024 00:15:31 +0000 (UTC)
Received: from tutadb.w10.tutanota.de (unknown [192.168.1.10])
	by w1.tutanota.de (Postfix) with ESMTP id 95BEEFBF89E
	for <submit@bugs.devuan.org>; Wed, 20 Mar 2024 00:15:29 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1710893729;
	s=s1; d=tuta.io;
	h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Date:Date:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:Sender;
	bh=EmBeWUERXnB08SxSKG1GL5QQKum32OmVZtoKiMqp1YI=;
	b=g+6KsE/a5tzJetR4XL53axXo7ja97mnRm29auM132d7TgByHud2WKDGoTYcmOvL7
	Sa1AXsJwIhXv5g6mg6iPUycwKdzIwgaFBT3+E98BDlu2KmGa55OfHGHWx9C3YozjJN1
	iamaC9dGOfNJ0395RUcoXl2FoQK9GhNMNNuUT/mryqXAJCSZQPCgd32iLYq5ivkyYta
	wv8JXWOcl3Vm8RMLMJKS/46ei4/F9iXFcAx1AW6PrKz7xyIFlVlHdDu4oJqi83Q72kT
	jQ4FamWwrhknZnPtSXtMqvRTyjKgJIIs/zgC84QpS9zbl1Ue/cloe/vWRUWM9iHa+jh
	g2W/n7Tscg==
Date: Wed, 20 Mar 2024 01:15:29 +0100 (CET)
From: stratus@tuta.io
To: Submit <submit@bugs.devuan.org>
Message-ID: <NtOCcG2--3-9@tuta.io>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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.

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.

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:41:34 2024;