Reboot or Shutdown commands dont exit from tty auto

From: lumaro <lumaro_at_disroot.org>
Date: Sun, 24 Nov 2024 09:47:56 +0100

Hi all,

When I try to restart or shutdown from the tty, user or root, the
process displays a message and waits until "exit" is executed and then
continues with the restart or shutdown...

Example:
----------
$ doas reboot

*** WARNING ***
The system id going down NOW!
$
----------
>> Then run "exit" and *shutdownd*" continues the process ...

My scripts:

-----------------
  $ cat /sbin/reboot
#!/bin/execlineb -S0

s6-linux-init-hpr -r $_at_

  $ cat /sbin/shutdown
#!/bin/execlineb -S0

s6-linux-init-shutdown $_at_

  $ cat /sbin/poweroff
#!/bin/execlineb -S0

s6-linux-init-hpr -p $_at_

  $ cat /sbin/halt
#!/bin/execlineb -S0

s6-linux-init-hpr -h $_at_

-----------------

Its normal? What am I doing wrong? Any ideas?

Thanks !!
Luis.
Received on Sun Nov 24 2024 - 09:47:56 CET

This archive was generated by hypermail 2.4.0 : Sun Nov 24 2024 - 09:48:30 CET