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

Difference between revisions of "Activating a log daemon"

From Void Linux Wiki
Jump to navigation Jump to search
(General cleanup.)
Line 1: Line 1:
To use svlogtail you have to do some operation.
+
Being a minimalistic distro, by default Void Linux does not provide any log facility in the base system. Therefore, to be able to use {{ic|svlogtail}} or to get any logs from applications expecting a log daemon to be running, you have to install such daemon yourself.  
  
You have to install the <code>socklog-void</code> package and activate the corresponding runit services; add you user to the <code>socklog</code> group to be able to see the logs.
+
The recommended procedure is to install the {{pkg|socklog-void}} package, activate the corresponding [[runit]] services and add your username to the {{ic|socklog}} group to be able to see the logs, like thus:
  
This procedure is buried into an xbps-install message:
+
# xbps-install -Sy socklog-void
 +
# usermod -aG socklog &lt;your username&gt;
 +
# ln -s /etc/sv/socklog-unix /var/service/
 +
# ln -s /etc/sv/nanoklogd /var/service/
  
<pre>xbps-install -Sy socklog-void
+
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 [http://smarden.org/socklog/ project's page]. As you can see, socklog is maintained by the author of runit.
usermod -aG socklog &lt;your username&gt;
 
ln -s /etc/sv/socklog-unix /var/service/
 
ln -s /etc/sv/nanoklogd /var/service/</pre>
 
  
More details on how <code>socklog</code> works and how to configure it can be found on the [http://smarden.org/socklog/ project's page].
+
Enjoy Void Linux!
  
Enjoy Void Linux
 
 
[[Category:Guides]]
 
[[Category:Guides]]

Revision as of 13:39, 13 December 2017

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!