supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Reboot or Shutdown commands dont exit from tty auto
@ 2024-11-24  8:47 lumaro via supervision
  2024-11-24 10:57 ` Hoël Bézier
  0 siblings, 1 reply; 8+ messages in thread
From: lumaro via supervision @ 2024-11-24  8:47 UTC (permalink / raw)
  To: supervision

[-- Attachment #1: Type: text/plain, Size: 736 bytes --]

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 $@

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

s6-linux-init-shutdown $@

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

s6-linux-init-hpr -p $@

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

s6-linux-init-hpr -h $@

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

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

Thanks !!
Luis.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-11-25  5:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-24  8:47 Reboot or Shutdown commands dont exit from tty auto lumaro via supervision
2024-11-24 10:57 ` Hoël Bézier
2024-11-24 12:26   ` lumaro via supervision
2024-11-24 12:49     ` Re[2]: " Laurent Bercot
2024-11-24 14:46       ` lumaro via supervision
2024-11-24 16:39         ` [SOLVED] " lumaro via supervision
2024-11-24 22:47           ` Laurent Bercot
2024-11-25  5:00             ` lumaro via supervision

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).