Bug#1094002: shutdown: restarts under openrc

Mark Hindley mark at hindley.org.uk
Fri Jan 24 15:42:59 GMT 2025


Control: tags -1 moreinfo

Matthias,

Thanks for this.

On Fri, Jan 24, 2025 at 03:41:03PM +0100, Matthias Geiger wrote:
> Package: sysvinit-core
> Version: 3.13-1
> Severity: normal
> X-Debbugs-Cc: werdahias at debian.org
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Dear maintainer,
> 
> running sudo /sbin/shutdown now with openrc as service mamanger does not 
> shut down the machine as expected, but bails out because /etc/inittab.d 
> does not exist.

Do you have evidence that this is causative?

> =======
> 2025-01-24T15:31:26.820456+01:00 midgard shutdown[4570]: shutting down for system reboot
> 2025-01-24T15:31:26.837905+01:00 midgard init: Switching to runlevel: 1
> 2025-01-24T15:31:26.838058+01:00 midgard init: No inittab.d directory found

To me it looks informational.

I have to admit to finding shutdown(8) less than intuitive and badly named.
For that reason (and habit) I prefer to use poweroff(8) or reboot(8).

But I *think* shutdown is behaving here as intended. If you want to switch off
with shutdown, you have to specify the -h flag.

I have just tried and both of shutdown's -h and -r options seem to do what is
expected.

Mark



More information about the Debian-init-diversity mailing list