💾 Archived View for darknesscode.xyz › notes › services-and-daemons-void-linux.gmi captured on 2024-08-18 at 17:29:34. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-05)

-=-=-=-=-=-=-

Services & Daemons in Void Linux Runit

Void uses the runit supervision suite to run system services and daemons

Basic Usage

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

Enabling Services

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/

Disabling Services

To disable a service, remove the symlink from the running runsvdir

rm /var/service/<service>

Testing Services

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.

----------

Home

Linux

Notes

MicroLog

----------

© DarknessCode