Re: restarting s6-svscan (as pid 1)

From: Steve Litt <slitt_at_troubleshooters.com>
Date: Fri, 17 Nov 2023 17:45:09 -0500

dan_at_telent.net said on Fri, 17 Nov 2023 22:20:32 +0000


>I was thinking I could use the .svscan/finish script to check for the
>existence of the "maintenance mode" ramfs, remount it onto /
>and then `exec /bin/init` as its last action, though it seems a bit
>cheesy to have a file called `finish` that actually sometimes performs
>`single-user-mode` instead. Would that work?

I don't know if it would work. Why not try it. Also, you might need to
make changes to the 3 script.

As far as "cheesy", the only disadvantage is self-documentation, and
self-documentation could be preserved by adding a properly named script
and calling or exec'ing it.

SteveT

Steve Litt

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
Received on Fri Nov 17 2023 - 23:45:09 CET

This archive was generated by hypermail 2.4.0 : Fri Nov 17 2023 - 23:45:45 CET