troglobit / finit

Fast init for Linux. Cookies included
https://troglobit.com/projects/finit/
MIT License
633 stars 63 forks source link

Refactor reboot.c as part of initctl #147

Closed troglobit closed 3 years ago

troglobit commented 3 years ago

The reboot tool uses signals and kernel SHUT_REBOOT & C:o to tell Finit, or the kernel, to reboot. The new way to reboot is to use initctl reboot, which communicates with Finit over the domain socket. We should refactor reboot to be part (multicall binary) of initctl, and fall back to signals if the communication over the domain socket fails.