summrum / void_dinit

Files for using dinit as system init on Void
The Unlicense
12 stars 0 forks source link

shutdown, reboot, etc overwritten #3

Open jujpenabe opened 1 year ago

jujpenabe commented 1 year ago

Hello,

thanks to this repository I managed to configure the services for dinit and tested successfully, one thing I didn't realize is that when I installed dinit, the void shutdown and restart files were overwritten and now I can't shutdown properly every time I do it try, it shows `connect : No such file or directory. Do you know how to fix this or at least revert the changes to those files?

summrum commented 1 year ago

Hi, when you say it happens every time, do you mean that it happens now after a forced shutdown? What exact command are you using to shutdown or reboot the system? shutdown -r should reboot the system and shutdown -p or simply shutdown should shutdown then power off. man shutdown should confirm that you have the dinit shutdown executable and provide all the available options.

Installing dinit will replace the executable as you note, hence when first switching Void to dinit I recommend installing dinit from a chroot for ease. Alternatively, you can create a copy of the original executable so that you can reboot from the runit system in to the dinit system.

If you simply want the old executable back, you could take it off a Void Linux live installation or recompile from the Void repository.

Hope that helps, please let me know how you get on.