Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: leahfluffytail on 19 September 2023, 06:33:45

Title: overview of runit?
Post by: leahfluffytail on 19 September 2023, 06:33:45
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
Code: [Select]
sudo NetworkManager start
to start my Wifi, but id like that to start with Runit alongside boot (like a service x3)
Title: Re: overview of runit?
Post by: replabrobin on 19 September 2023, 09:30:25
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/
Title: Re: overview of runit?
Post by: dreamer on 19 September 2023, 09:38:44
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 (https://packages.artixlinux.org/) and check for -runit

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


Also have a look inside the script that starts the service, to understand what is happening
Code: [Select]
cat /etc/runit/sv/networkmanager/run
Title: Re: overview of runit?
Post by: Surf3r on 19 September 2023, 10:41:45

 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.

 ✌🏻