s6 hangs at shutdown

From: Alex Suykov <alex.suykov_at_gmail.com>
Date: Thu, 12 Nov 2015 17:45:59 +0200


I'm trying to reboot s6-based qemu system [1] and it seems to hang
at around s6-rc -ad change stage. Could anyone please point out why
it can't proceed to reboot, maybe I'm doing something wrong?

The system runs with s6-svscan as pid 1.
I log in and initiate reboot with

    s6-svscanctl -i /run/service

This results in

    s6-svc: fatal: unable to control /run/service/s6-svscan-log: supervisor not listening
    Shutting down system.
    Syncing disks.

but I still have my sh, and I can see with ps that all s6-supervise have been
killed except for s6-supervise getty. By this point ps shows pid 1 as

    foreground s6-rc -ad change foreground s6-echo Performing reboot. s6-reboot

and it does not seem to proceed any further.
Killing sh, getty or its supervisor does not help.
Same with halt and poweroff.

The init script in that system is
and reboot script is

[1] https://github.com/elebihan/buildroot-s6
Received on Thu Nov 12 2015 - 15:45:59 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC