Subject: bug#842: initscripts bug - /etc/init.d/rc.local does not run /etc/rc.shutdown on shutdown

From: [email-masked]
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.

---

From: Mark Hindley <[email-masked]>
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, [email-masked] wrote:
> 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

---

From: Mark Hindley <[email-masked]>
Date: Wed, 20 Mar 2024 13:09:47 +0000

Thorsten,

On Wed, Mar 20, 2024 at 01:11:10PM +0100, Thorsten Glaser wrote:
> 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

---

From: "Devuan bug Tracking System" <[email-masked]>
Date: Wed, 17 Apr 2024 13:22:02 +0000

This is an automatic notification regarding your bug report
which was filed against the initscripts package:

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

It has been closed by [email-masked].

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact [email-masked] by
replying to this email.

-- 
842: https://bugs.devuan.org/cgi/bugreport.cgi?bug=842
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: #842: fixed in src:sysvinit version 3.09-1devuan1
From: [email-masked]
To: [email-masked]
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

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 <[email-masked]>
Changed-By: Mark Hindley <[email-masked]>
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

Subject: initscripts bug - /etc/init.d/rc.local does not run /etc/rc.shutdown on shutdown
From: [email-masked]
To: Submit <[email-masked]>
Date: Wed, 20 Mar 2024 01:15:29 +0100 (CET)

# Required-Stop :        $all
# Default-Stop:            0 6

then running: