Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

Activating a log daemon

From Void Linux Wiki
Revision as of 13:39, 13 December 2017 by Tactica (talk | contribs) (General cleanup.)
Jump to navigation Jump to 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 and add your username to the socklog group to be able to see the logs, like thus:

# xbps-install -Sy socklog-void
# usermod -aG socklog <your username>
# ln -s /etc/sv/socklog-unix /var/service/
# ln -s /etc/sv/nanoklogd /var/service/

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!