Activating a log daemon

From Void Linux Wiki
Jump to: navigation, search

Being a minimalistic distro, by default Void Linux does not provide any log facility in the base system. Therefore, to be able to use svlogtail or to get any logs from applications expecting a log daemon to be running, you have to install such daemon yourself.

The recommended procedure is to install the socklog-void package, activate the corresponding runit services like thus:

# xbps-install -Sy socklog-void
# ln -s /etc/sv/socklog-unix /var/service/
# ln -s /etc/sv/nanoklogd /var/service/

To access logs without root privileges, add your user to the socklog group

# usermod -aG socklog <your username>

The config package depends on socklog itself so the daemon will be installed automatically if necessary. More details on how the daemon works and how to configure it can be found on the project's page. As you can see, socklog is maintained by the author of runit.

Enjoy Void Linux!