dinit
dinit copied to clipboard
soft-reboot doesn't execute shutdown hooks
soft-reboot doesn't execute the shutdown hook script, which isn't documented. It should at least be documented, or otherwise fixed.
(Probably want to execute them by executing shutdown with some arguments such as -s --system, but will need to fork to run shutdown rather than execing it without forking).