Bug#1094921: sysvinit-core: does not write entries to wtmpdb
Lorenzo
plorenzo at disroot.org
Sun Feb 2 22:52:25 GMT 2025
On Sun, 2 Feb 2025 22:25:43 +0000
Andrew Bower <andrew at bower.uk> wrote:
> On Sun, Feb 02, 2025 at 11:00:46PM +0100, Lorenzo wrote:
> > On Sun, 2 Feb 2025 21:00:41 +0000
> > Andrew Bower <andrew at bower.uk> wrote:
> >
> > For the boot entry I can just remove the wtmpdb call in stage 1;
> > for the shutdown entry in runit, is implemented as "halt -w[1]" in
> > shutdown.c that is called by umountnfs.sh in runlevel 0 or 6, and
> > it's not obvious to me how to prevent a double shutdown entry here.
> > maybe the sysv script can be a no-op when runit is init?
> >
> > [ -f /run/runit.stopit ] && exit 0
> >
> > better ideas are welcome; when I added the code to runit I didn't
> > think a sysv script was going to be accepted in the wtmpdb package.
>
> What about /etc/runit/override-sysv.d?
yes, that would work too, I can ship the file with runit-init package.
More information about the Debian-init-diversity
mailing list