Skip to main content
Topic: overview of runit? (Read 599 times) previous topic - next topic
0 Members and 4 Guests are viewing this topic.

overview of runit?

hey all :3 i migrated from Arch to Artix today, i chose the Runit system and installed manually
i feel like i got a pretty good grasp of it so far besides Runit, i dont think its properly explained in the wiki, or at least i dont understand it :p

did i miss something by installing manually? could i get a brief overview on how to manage services?
(i like to ask questions)

for example right now im using
Code: [Select]
sudo NetworkManager start
to start my Wifi, but id like that to start with Runit alongside boot (like a service x3)
can we be friends

Re: overview of runit?

Reply #1
You need to install and enable the networkmanager-runit package

sudo pacman -S networkmanager-runit

sudo ln -s /etc/runit/sv/NetworkManager /run/runit/service/

Re: overview of runit?

Reply #2
Welcome to Artix

To install the networkmanager service for runit:
Code: [Select]
pacman -S networkmanager-runit
And to enable the service:
Code: [Select]
ln -s /etc/runit/sv/networkmanager /etc/runit/runsvdir/default
For other programs search the artix packages and check for -runit

I would re-read the wiki a couple of times, my simple explanation of runit is,

  • On boot runit goes through 3 stages (init, runtime, shutdown) to initialize the necessary programs in the required order
  • The above command adds a symbolic link, so at runtime runit cycles through the directory starting all those programs, checking for a run script

Also have a look inside the script that starts the service, to understand what is happening
Code: [Select]
cat /etc/runit/sv/networkmanager/run

Re: overview of runit?

Reply #3

 Runit is blazing fast except when you have apparmor on. It loads a bit slow those aa profiles at boot. Your added syctl tweaks (depending how many of them you have) also will eat a bit from the boot time but not as much as in the aa case. For that you can remove unused aa profiles so there's  a quick fix for that.

 While on normal operation routine, runit it's highly reliable and you won't have any issues with it once you know its basics.

 ✌🏻