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

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#842; Package initscriptsversion: 3.06-4devuan3. (Wed, 20 Mar 2024 00:18:01 GMT) (full text, mbox, link).


Acknowledgement sent to stratus@tuta.io:
New bug report received and forwarded. Copy sent to devuan-dev@lists.dyne.org. (Wed, 20 Mar 2024 00:18:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

From: stratus@tuta.io
To: Submit <submit@bugs.devuan.org>
Subject: initscripts bug - /etc/init.d/rc.local does not run /etc/rc.shutdown on shutdown
Date: Wed, 20 Mar 2024 01:15:29 +0100 (CET)
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.

Information forwarded to devuan-bugs@lists.dyne.org, devuan-dev@lists.dyne.org:
bug#842; Package initscriptsversion: 3.06-4devuan3. (Wed, 20 Mar 2024 09:26:02 GMT) (full text, mbox, link).


Message #8 received at 842@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: stratus@tuta.io, 842@bugs.devuan.org
Cc: debian-init-diversity@chiark.greenend.org.uk
Subject: Re: bug#842: initscripts bug - /etc/init.d/rc.local does not run /etc/rc.shutdown on shutdown
Date: Wed, 20 Mar 2024 09:24:22 +0000
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


bug reassigned from package 'initscriptsversion: 3.06-4devuan3' to 'initscripts'. Request was from Mark Hindley <mark@hindley.org.uk> to 842-submit@bugs.devuan.org. (Wed, 20 Mar 2024 09:26:02 GMT) (full text, mbox, link).


Marked as found in versions sysvinit/3.06-4devuan3. Request was from Mark Hindley <mark@hindley.org.uk> to 842-submit@bugs.devuan.org. (Wed, 20 Mar 2024 09:26:02 GMT) (full text, mbox, link).


Information forwarded to devuan-bugs@lists.dyne.org, Devuan Developers <devuan-dev@lists.dyne.org>:
bug#842; Package initscripts. (Wed, 20 Mar 2024 13:12:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mark Hindley <mark@hindley.org.uk>:
Extra info received and forwarded to list. Copy sent to Devuan Developers <devuan-dev@lists.dyne.org>. (Wed, 20 Mar 2024 13:12:02 GMT) (full text, mbox, link).


Message #17 received at 842@bugs.devuan.org (full text, mbox, reply):

From: Mark Hindley <mark@hindley.org.uk>
To: Thorsten Glaser <t.glaser@qvest-digital.com>
Cc: debian-init-diversity@chiark.greenend.org.uk, 842@bugs.devuan.org
Subject: Re: bug#842: initscripts bug - /etc/init.d/rc.local does not run /etc/rc.shutdown on shutdown
Date: Wed, 20 Mar 2024 13:09:47 +0000
Thorsten,

On Wed, Mar 20, 2024 at 01:11:10PM +0100, Thorsten Glaser wrote:
> >Hmm, that is because bin:initscripts is built from src:sysvinit. I am not sure
> >that can be easily fixed without separating it out.
> 
> Should be possible to add a Homepage header to the binary package entry.

Thanks. I am not sure why I had the preconception that Homepage was only valid
in the Source stanza.

I suppose it needs adding to bin:sysv-rc as well.

Mark

Reply sent to dak@devuan.org:
You have taken responsibility. (Wed, 17 Apr 2024 13:22:01 GMT) (full text, mbox, link).


Notification sent to stratus@tuta.io:
bug acknowledged by developer. (Wed, 17 Apr 2024 13:22:02 GMT) (full text, mbox, link).


Message #22 received at 842-done@bugs.devuan.org (full text, mbox, reply):

From: dak@devuan.org
To: 842-done@bugs.devuan.org
Subject: #842: fixed in src:sysvinit version 3.09-1devuan1
Date: Wed, 17 Apr 2024 13:20:18 +0000
Version: 3.09-1devuan1

Source package sysvinit (3.09-1devuan1) added to Devuan suite unstable.

This closes bug report 842.

Thanks

DAK managing the Devuan archive

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 17 Apr 2024 13:55:47 +0100
Source: sysvinit
Architecture: source
Version: 3.09-1devuan1
Distribution: unstable
Urgency: medium
Maintainer: Devuan Developers <devuan-dev@lists.dyne.org>
Changed-By: Mark Hindley <mark@hindley.org.uk>
Closes: 842
Changes:
 sysvinit (3.09-1devuan1) unstable; urgency=medium
 .
   * Merge tag debian/3.09-1.
     - includes updated rc.local stop levels (Closes: #842).
Checksums-Sha1:
 325ce4ad973813175d76fcb9f721e577a4f75c94 1996 sysvinit_3.09-1devuan1.dsc
 b37b1611a8784eb1a51057f0cb485092fe752125 514145 sysvinit_3.09.orig.tar.gz
 da0eca7b539989392d232171c1b13399be219082 122004 sysvinit_3.09-1devuan1.debian.tar.xz
 d0f18db209ddd11845d8834cb56e527c728cff23 5471 sysvinit_3.09-1devuan1_source.buildinfo
Checksums-Sha256:
 96d51601266525e35e0d33ea785469252bd5c5bbaa0a33560c7b222ed01bfb9c 1996 sysvinit_3.09-1devuan1.dsc
 991c5d0100165d7896dae9df6a69877311cdd5349e32f7fc6960859f5f60a6ce 514145 sysvinit_3.09.orig.tar.gz
 f486676d59a08faa2ade6881cc29ae04a27d0380c04c513c3fe7c1f5d01c16be 122004 sysvinit_3.09-1devuan1.debian.tar.xz
 0ac7983ace66df748c1ed670e14f59353a925ebc7a3ffd921cf3e878c7aeae21 5471 sysvinit_3.09-1devuan1_source.buildinfo
Files:
 88ad918d9f5937dc23dc68587f7eb1e7 1996 admin required sysvinit_3.09-1devuan1.dsc
 299a395c506a0301892a4f8e9b0fe6d8 514145 admin required sysvinit_3.09.orig.tar.gz
 b4e37b6190e0aa0aa023add03b25ca7c 122004 admin required sysvinit_3.09-1devuan1.debian.tar.xz
 ebda577f35a639249e1e4cf829e09250 5471 admin required sysvinit_3.09-1devuan1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEcuPLdzMV36LkZHQ9lFMhJFQZIvsFAmYfypMACgkQlFMhJFQZ
Ivu4Wgf9Fl4d3Hun5s+5faQH7Qe+9/HGHRk68nJ5IGbF0p9U03wXr614LXBR3Z7d
TQQNguygL2h+B06X2rk9wEmbTWlyezJdbslzv8GE+ZsQpK2QNv4Wr5R1b9iXzHqH
aLFae4bpDGnxqFhpUsVZ2+euxxty2zvVO5s7+POXIERklv1k+sR/o25lmZIob2mE
KlB4jSUJQWv4SwglTfaect2V4XxJHtTjOMuWpk0CAqOq4WZUKlsWyWRFfOiM/1v6
C9C2cY5HkRocDzlxBaqC0HoobG84bItpd0Owm6KtxDcecxOHGw4R7Q0DZmTQeNva
9rmh5dRaJo+m2po6A5x1EOZE7qM/dw==
=TGIn
-----END PGP SIGNATURE-----

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 02:10:18 2024;