💾 Archived View for darknesscode.xyz › notes › services-and-daemons-void-linux.gmi captured on 2023-11-04 at 11:31:09. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-05)
-=-=-=-=-=-=-
Void uses the runit supervision suite to run system services and daemons
To start, stop, restart or get the status of a service:
sv up <services> sv down <services> sv restart <services> sv status <services>
Example
sv status dhcpcd
See the man sv(8) for more information
Void Linux provides service directories for most daemons in /etc/sv/
To enable a service on a booted system, create a symlink to the service directory in /var/service/
ln -s /etc/sv/<service> /var/service/
To disable a service, remove the symlink from the running runsvdir
rm /var/service/<service>
To check if a service is working correctly when started by the service supervisor, run it once before fully enabling it:
touch /etc/sv/<service>/down ln -s /etc/sv/<service> /var/service/ sv once <service>
If everything works, remove the down file to enable the service.
----------
----------
© DarknessCode