From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: Re: where to put helper to send stdout/stderr to syslog? Date: Tue, 18 Jun 2019 15:32:52 +0200 Message-ID: <87v9x3588r.fsf@gnu.org> References: <20190617144549.3430003f@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50516) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdEER-0002qk-7b for guix-devel@gnu.org; Tue, 18 Jun 2019 09:33:04 -0400 In-Reply-To: <20190617144549.3430003f@scratchpost.org> (Danny Milosavljevic's message of "Mon, 17 Jun 2019 14:45:49 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org, Robert Vollmert Hi, Danny Milosavljevic skribis: > I think it could be made part of shepherd and be exported there, then eve= ryone > could use it. Logging to syslog isn't exactly an obscure requirement :) +1! > Although shepherd already has its own /dev/log (syslog) client implementa= tion, > 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 socke= ts > 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 chi= ld :P Yes, that should be enough. Robert, would you like to give it a go? Thanks, Ludo=E2=80=99.