Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] s6 services logging (Read 129 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] s6 services logging

In s6 artix, I see log directory for each of the service deamons. Ex: sshd-log for sshd-srv , which I think s6-log(executed in run script of log directory) grabs all the logs from the deamon service.
I'm also seeing s6-svscan-log service running s6-log and redirecting to /run/uncaught-logs/ .
Does s6-svcan-log service also collects logs from all service daemons?? When this service is run and what logs does it collect?
I'm confused. Can you please clarify.

Re: s6 services logging

Reply #1
Oops sorry I missed this earlier. You're right about the *-log directories. Most of the scripts have a separate s6-log daemon that reads the output of the actual daemon and logs it in /var/log/daemon-name. As you noted, there's also s6-svscan-log. What that does is pick up any output from any part of the s6/s6-rc/s6-linux-init workflow that isn't captured by some other logger. Essentially, it's just a service that ensures you never lose any logs.

Re: s6 services logging

Reply #2
Thank you Sir.