Artix Linux Forum

Init systems => runit => Topic started by: Anaximenes on 22 May 2025, 16:15:42

Title: Service supervision best practices
Post by: Anaximenes on 22 May 2025, 16:15:42
Recently, while installing a component, my pacman gave the following output:

Code: [Select]
==> Remove a service:
 rm /run/runit/service/<service>
==> Start/stop/restart a service:
 sv <start/stop/restart> <service>

However, the service supervision section in the Artix wiki (https://wiki.artixlinux.org/Main/Runit) suggests:

Code: [Select]
If the service isn't going to be used anymore, the previously created symbolic link has to be removed from the runlevel directory. For example, the following command disables supervision on a service in the current runlevel:

 unlink /run/runit/service/service_name

Questions[/i]:

1. What must be ideally done to a service that is no longer necessary or whose primary packages have been removes using pacman?
2. Why does the wiki not include the prompt of the pacman output as a valid way of dealing with the issue of removing services that are no longer necessary?