I really really like runit – an init replacement – instead of writing why i really like it, i just point you to the specific documentation: Benefits. Sounds fine or? I will write soon a module for it, if i got enough time, anyway: Here’s how to use it:
Installation
Follow the Steps as explained here: Installation
Replacing the Init
Follow this guide TILL Step 2 – before we proceed with Step 3 we need to adjust something: Replacing SysVinit with Runit.
Step 2.5 :P (Skip Step 3 for Lunar Linux)
# mkdir -p /service
# ln -s /etc/sv/getty-5 /service/
Lunar is using agetty instead of getty. That means runit will not work correctly when we test it now. Edit “/etc/sv/getty-5/run” and change “exec /sbin/getty 38400 tty5 linux” to “exec /sbin/agetty 38400 tty5 linux”
Start runit’s stage 2 for testing:
# /etc/runit/2 &
And check that the getty is running.
root@yulivee ~ # ps aux | grep getty
root 2997 0.0 0.0 3600 384 ? Ss 12:54 0:00 runsv getty-5
root 2998 0.0 0.0 3740 536 ? Ss 12:54 0:00 /sbin/agetty 38400 tty5 linux
Now you can check using a reboot and booting with init=/sbin/runit-init whether its working or not. From what i saw everything is working except my mouse in X11. And right now i have only one Terminal :) So let’s go through the migration of init scripts. Start reading at Step 5: Replacing SysVinit with Runit.
That’s it :-)
