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 (https://wiki.artixlinux.org/Main/Runit), 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
sudo NetworkManager start
to start my Wifi, but id like that to start with Runit alongside boot (like a service x3)
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/
Welcome to Artix
To install the networkmanager service for runit:
pacman -S networkmanager-runit
And to enable the service:
ln -s /etc/runit/sv/networkmanager /etc/runit/runsvdir/default
For other programs search the artix packages (https://packages.artixlinux.org/) 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
cat /etc/runit/sv/networkmanager/run
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.
✌🏻