[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: where to put helper to send stdout/stderr to syslog?
From: |
Ludovic Courtès |
Subject: |
Re: where to put helper to send stdout/stderr to syslog? |
Date: |
Tue, 18 Jun 2019 15:32:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Hi,
Danny Milosavljevic <address@hidden> skribis:
> I think it could be made part of shepherd and be exported there, then everyone
> could use it. Logging to syslog isn't exactly an obscure requirement :)
+1!
> Although shepherd already has its own /dev/log (syslog) client implementation,
> the external "logger" executable (or similar) is still necessary, because
> /dev/log is a UNIX domain socket and one can't write to UNIX domain sockets
> the same way one does pipes. Although it might be possible (and not
> advisable) to connect() the socket and then dup it to 1 and 2 for the child :P
Yes, that should be enough.
Robert, would you like to give it a go?
Thanks,
Ludo’.