From unknown Sun Jun 15 10:53:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30939 <30939@debbugs.gnu.org> To: bug#30939 <30939@debbugs.gnu.org> Subject: Status: shepherd: detailed output should be placed into well-known location and not tty Reply-To: bug#30939 <30939@debbugs.gnu.org> Date: Sun, 15 Jun 2025 17:53:58 +0000 retitle 30939 shepherd: detailed output should be placed into well-known lo= cation and not tty reassign 30939 guix submitter 30939 ng0 severity 30939 important thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 25 14:35:54 2018 Received: (at submit) by debbugs.gnu.org; 25 Mar 2018 18:35:54 +0000 Received: from localhost ([127.0.0.1]:53171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0AUk-0006o7-KK for submit@debbugs.gnu.org; Sun, 25 Mar 2018 14:35:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:32908) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0AUi-0006nt-I7 for submit@debbugs.gnu.org; Sun, 25 Mar 2018 14:35:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0AUc-0002m4-NO for submit@debbugs.gnu.org; Sun, 25 Mar 2018 14:35:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43390) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0AUc-0002m0-Kw for submit@debbugs.gnu.org; Sun, 25 Mar 2018 14:35:46 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0AUb-0002tN-Op for bug-guix@gnu.org; Sun, 25 Mar 2018 14:35:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0AUb-0002lQ-2f for bug-guix@gnu.org; Sun, 25 Mar 2018 14:35:45 -0400 Received: from conspiracy.of.n0.is ([2a01:4f8:1c0c:7ad0::1]:46214) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f0AUa-0002kV-No for bug-guix@gnu.org; Sun, 25 Mar 2018 14:35:44 -0400 Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id 6485dd03 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sun, 25 Mar 2018 18:35:40 +0000 (UTC) Date: Sun, 25 Mar 2018 18:35:55 +0000 From: ng0 To: bug-guix@gnu.org Subject: shepherd: detailed output should be placed into well-known location and not tty Message-ID: <20180325183555.cilo6qyrj43jh6he@abyayala> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) Problem, not just when a service is misbehaving after successful system reconfigure: $ sudo herd start smtpd Password: Service smtpd could not be started. herd: failed to start service smtpd This is on virtual terminal in X11, as well as in /var/log/messages, /var/log/shepherd.log, etc. This is not enough. If I wanted more info, I'd expect that sudo herd status smtpd would give it (which it does not), so the only reliable source of information so far is tty 1. Can we fix that in one of the next shepherd releases? Or is this something we have to fix in Guix? From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 26 09:41:31 2018 Received: (at 30939) by debbugs.gnu.org; 26 Mar 2018 13:41:31 +0000 Received: from localhost ([127.0.0.1]:53757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0SNP-0006st-J6 for submit@debbugs.gnu.org; Mon, 26 Mar 2018 09:41:31 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:41016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0SNN-0006sj-BG for 30939@debbugs.gnu.org; Mon, 26 Mar 2018 09:41:30 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id CA21E12356; Mon, 26 Mar 2018 15:41:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZStRgf7C_J8U; Mon, 26 Mar 2018 15:41:28 +0200 (CEST) Received: from ribbon (unknown [193.50.110.93]) by hera.aquilenet.fr (Postfix) with ESMTPSA id F2E991095F; Mon, 26 Mar 2018 15:41:27 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: ng0 Subject: Re: bug#30939: shepherd: detailed output should be placed into well-known location and not tty References: <20180325183555.cilo6qyrj43jh6he@abyayala> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 Germinal an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 26 Mar 2018 15:41:27 +0200 In-Reply-To: <20180325183555.cilo6qyrj43jh6he@abyayala> (ng0@n0.is's message of "Sun, 25 Mar 2018 18:35:55 +0000") Message-ID: <87a7uvdke0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30939 Cc: 30939@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hi ng0, ng0 skribis: > Problem, not just when a service is misbehaving after successful system r= econfigure: > > $ sudo herd start smtpd > Password:=20 > Service smtpd could not be started. > herd: failed to start service smtpd > > > > This is on virtual terminal in X11, as well as in /var/log/messages, > /var/log/shepherd.log, etc. > This is not enough. If I wanted more info, I'd expect that > sudo herd status smtpd would give it (which it does not), so the only > reliable source of information so far is tty 1. Can we fix that in > one of the next shepherd releases? Or is this something we have to > fix in Guix? So you=E2=80=99re saying that you=E2=80=99d like shepherd to show more info= as to why the service could not be started, right? Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 26 11:10:27 2018 Received: (at 30939) by debbugs.gnu.org; 26 Mar 2018 15:10:27 +0000 Received: from localhost ([127.0.0.1]:54502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0TlT-0000q3-92 for submit@debbugs.gnu.org; Mon, 26 Mar 2018 11:10:27 -0400 Received: from static.195.114.201.195.clients.your-server.de ([195.201.114.195]:54152 helo=conspiracy.of.n0.is) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0TlO-0000pr-Th for 30939@debbugs.gnu.org; Mon, 26 Mar 2018 11:10:24 -0400 Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id 5c507145 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 26 Mar 2018 15:10:19 +0000 (UTC) Date: Mon, 26 Mar 2018 15:10:36 +0000 From: ng0 To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#30939: shepherd: detailed output should be placed into well-known location and not tty Message-ID: <20180326150859.6yf244bgjxi4oawt@abyayala> References: <20180325183555.cilo6qyrj43jh6he@abyayala> <87a7uvdke0.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a7uvdke0.fsf@gnu.org> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30939 Cc: 30939@debbugs.gnu.org, ng0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hi Ludovic, Ludovic Courtès transcribed 790 bytes: > Hi ng0, > > ng0 skribis: > > > Problem, not just when a service is misbehaving after successful system reconfigure: > > > > $ sudo herd start smtpd > > Password: > > Service smtpd could not be started. > > herd: failed to start service smtpd > > > > > > > > This is on virtual terminal in X11, as well as in /var/log/messages, > > /var/log/shepherd.log, etc. > > This is not enough. If I wanted more info, I'd expect that > > sudo herd status smtpd would give it (which it does not), so the only > > reliable source of information so far is tty 1. Can we fix that in > > one of the next shepherd releases? Or is this something we have to > > fix in Guix? > > So you’re saying that you’d like shepherd to show more info as to why > the service could not be started, right? > > Thanks, > Ludo’. Must have been late and too many failed attempts at what I'm trying to do. Yes. So I can't make any daemons I run out there fail, but for the current case I have in Guix for this: Sometimes I succeed building a system generation with an OpenSMTPD config-file which has syntax error that aren't picked up at configure time. When I reboot, not being aware of this, I have to switch to tty to read the reasons why it crashed. Because this is a desktop system, I have to start the service again to see the error output directly from the daemon. I think I know why this happens (that the output goes to tty), but nevertheless it would be good if shepherd were more capable than beint captain obvious: Start: "Oh, you see it is started". Crashed: "Oh, no has your daemon crashed?", like it is now. .... Okay, I just looked at some other daemon controls I run, and maybe it's good that shepherd is limited in its output. It does this one job. What I'd like to have as a sysadmin is the ability to tail something like say /var/log/shepherd.fail.log and services which are failing log into this file (or a set of files in /var/log/shepherd/ in files like $daemonname.fail.log). Given the absence of the kitchensink of tools in systemd, you got used to something like "status" and immediate "HELLO! This is why I failed: (5 lines)". With shepherd, you can't even grep for the failures in locations newcomers to the system would assume (like: /var/log/shepherd.log (it is the daemon control application)). Long store short, greping for failures to fix daemon configurations and not having to look at tty 1 (which can be noisy depending on what you run, I have some notorious tty spammers) would be good. And not sacrifice the simplicity of Shepherd :) From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 27 03:36:24 2018 Received: (at 30939) by debbugs.gnu.org; 27 Mar 2018 07:36:24 +0000 Received: from localhost ([127.0.0.1]:55090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0j9c-0000e6-Fk for submit@debbugs.gnu.org; Tue, 27 Mar 2018 03:36:24 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:48302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0j9b-0000dy-2U for 30939@debbugs.gnu.org; Tue, 27 Mar 2018 03:36:23 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 82DC512506; Tue, 27 Mar 2018 09:36:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id gnvHsaE6wYCQ; Tue, 27 Mar 2018 09:36:21 +0200 (CEST) Received: from ribbon (vpn-0-27.aquilenet.fr [IPv6:2a0c:e300:4:27::]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 6C0C8123A9; Tue, 27 Mar 2018 09:36:21 +0200 (CEST) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: ng0 Subject: Re: bug#30939: shepherd: detailed output should be placed into well-known location and not tty References: <20180325183555.cilo6qyrj43jh6he@abyayala> <87a7uvdke0.fsf@gnu.org> <20180326150859.6yf244bgjxi4oawt@abyayala> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Germinal an 226 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 27 Mar 2018 09:36:20 +0200 In-Reply-To: <20180326150859.6yf244bgjxi4oawt@abyayala> (ng0@n0.is's message of "Mon, 26 Mar 2018 15:10:36 +0000") Message-ID: <87o9jaynpn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30939 Cc: 30939@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hello, ng0 skribis: > Sometimes I succeed building a system generation with an OpenSMTPD config= -file > which has syntax error that aren't picked up at configure time. When I re= boot, > not being aware of this, I have to switch to tty to read the reasons why = it > crashed. > Because this is a desktop system, I have to start the service again to see > the error output directly from the daemon. I think shepherd could capture stdout/stderr of the processes it starts and make it available, in a way similar in spirit to what =E2=80=98journalc= tl=E2=80=99 does. That would allow you to see the output of the daemon that failed. That=E2=80=99s the only solution I can think of. Of course we don=E2=80=99= t have to do that if the daemon writes error messages to syslog, but not all of them do. Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 27 05:15:15 2018 Received: (at 30939) by debbugs.gnu.org; 27 Mar 2018 09:15:15 +0000 Received: from localhost ([127.0.0.1]:55186 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0khG-0004vH-Ky for submit@debbugs.gnu.org; Tue, 27 Mar 2018 05:15:14 -0400 Received: from static.195.114.201.195.clients.your-server.de ([195.201.114.195]:54248 helo=conspiracy.of.n0.is) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0khE-0004v4-LT for 30939@debbugs.gnu.org; Tue, 27 Mar 2018 05:15:13 -0400 Received: by conspiracy.of.n0.is (OpenSMTPD) with ESMTPSA id df018a85 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 27 Mar 2018 09:15:11 +0000 (UTC) Date: Tue, 27 Mar 2018 09:15:29 +0000 From: ng0 To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#30939: shepherd: detailed output should be placed into well-known location and not tty Message-ID: <20180327091529.pcju57bro2snuxtb@abyayala> References: <20180325183555.cilo6qyrj43jh6he@abyayala> <87a7uvdke0.fsf@gnu.org> <20180326150859.6yf244bgjxi4oawt@abyayala> <87o9jaynpn.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87o9jaynpn.fsf@gnu.org> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30939 Cc: 30939@debbugs.gnu.org, ng0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Ludovic Courtès transcribed 839 bytes: > Hello, > > ng0 skribis: > > > Sometimes I succeed building a system generation with an OpenSMTPD config-file > > which has syntax error that aren't picked up at configure time. When I reboot, > > not being aware of this, I have to switch to tty to read the reasons why it > > crashed. > > Because this is a desktop system, I have to start the service again to see > > the error output directly from the daemon. > > I think shepherd could capture stdout/stderr of the processes it starts > and make it available, in a way similar in spirit to what ‘journalctl’ > does. That would allow you to see the output of the daemon that failed. That sounds good. > That’s the only solution I can think of. Of course we don’t have to do > that if the daemon writes error messages to syslog, but not all of them do. > > Thanks, > Ludo’. Well, just a way to catch them would be good. Thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 27 14:59:52 2018 Received: (at 30939) by debbugs.gnu.org; 27 Mar 2018 18:59:52 +0000 Received: from localhost ([127.0.0.1]:56245 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0tp1-0007nv-PI for submit@debbugs.gnu.org; Tue, 27 Mar 2018 14:59:51 -0400 Received: from mail.lassieur.org ([83.152.10.219]:58296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0toz-0007nm-Mi for 30939@debbugs.gnu.org; Tue, 27 Mar 2018 14:59:50 -0400 Received: from rodion (88.191.118.83 [88.191.118.83]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 3a27b4bd (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Tue, 27 Mar 2018 18:59:47 +0000 (UTC) References: <20180325183555.cilo6qyrj43jh6he@abyayala> <87a7uvdke0.fsf@gnu.org> <20180326150859.6yf244bgjxi4oawt@abyayala> <87o9jaynpn.fsf@gnu.org> User-agent: mu4e 1.0; emacs 25.3.1 From: =?utf-8?Q?Cl=C3=A9ment?= Lassieur To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#30939: shepherd: detailed output should be placed into well-known location and not tty In-reply-to: <87o9jaynpn.fsf@gnu.org> Date: Tue, 27 Mar 2018 20:59:46 +0200 Message-ID: <87370lcpjx.fsf@lassieur.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 30939 Cc: 30939@debbugs.gnu.org, ng0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Ludovic Courtès writes: > Hello, > > ng0 skribis: > >> Sometimes I succeed building a system generation with an OpenSMTPD config-file >> which has syntax error that aren't picked up at configure time. When I reboot, >> not being aware of this, I have to switch to tty to read the reasons why it >> crashed. >> Because this is a desktop system, I have to start the service again to see >> the error output directly from the daemon. > > I think shepherd could capture stdout/stderr of the processes it starts > and make it available, in a way similar in spirit to what ‘journalctl’ > does. That would allow you to see the output of the daemon that failed. That would be great! > That’s the only solution I can think of. Of course we don’t have to do > that if the daemon writes error messages to syslog, but not all of them do. > > Thanks, > Ludo’. From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 27 16:14:54 2018 Received: (at 30939) by debbugs.gnu.org; 27 Mar 2018 20:14:54 +0000 Received: from localhost ([127.0.0.1]:56278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0uze-000195-D8 for submit@debbugs.gnu.org; Tue, 27 Mar 2018 16:14:54 -0400 Received: from world.peace.net ([50.252.239.5]:58560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f0uzc-00018r-G7 for 30939@debbugs.gnu.org; Tue, 27 Mar 2018 16:14:52 -0400 Received: from pool-72-93-26-128.bstnma.east.verizon.net ([72.93.26.128] helo=jojen) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f0uzV-0002CX-LZ; Tue, 27 Mar 2018 16:14:45 -0400 From: Mark H Weaver To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#30939: shepherd: detailed output should be placed into well-known location and not tty References: <20180325183555.cilo6qyrj43jh6he@abyayala> <87a7uvdke0.fsf@gnu.org> <20180326150859.6yf244bgjxi4oawt@abyayala> <87o9jaynpn.fsf@gnu.org> Date: Tue, 27 Mar 2018 16:13:52 -0400 In-Reply-To: <87o9jaynpn.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 27 Mar 2018 09:36:20 +0200") Message-ID: <87fu4l1dkv.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30939 Cc: 30939@debbugs.gnu.org, ng0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > ng0 skribis: > >> Sometimes I succeed building a system generation with an OpenSMTPD confi= g-file >> which has syntax error that aren't picked up at configure time. When I r= eboot, >> not being aware of this, I have to switch to tty to read the reasons why= it >> crashed. >> Because this is a desktop system, I have to start the service again to s= ee >> the error output directly from the daemon. > > I think shepherd could capture stdout/stderr of the processes it starts > and make it available, in a way similar in spirit to what =E2=80=98journa= lctl=E2=80=99 > does. That would allow you to see the output of the daemon that failed. This would be very helpful. Mark From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 05:13:56 2018 Received: (at control) by debbugs.gnu.org; 10 Jul 2018 09:13:56 +0000 Received: from localhost ([127.0.0.1]:53038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcoia-000407-Dt for submit@debbugs.gnu.org; Tue, 10 Jul 2018 05:13:56 -0400 Received: from mail.lassieur.org ([83.152.10.219]:40442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcoiZ-000400-Hf for control@debbugs.gnu.org; Tue, 10 Jul 2018 05:13:55 -0400 Received: from rodion (88.191.118.83 [88.191.118.83]) by mail.lassieur.org (OpenSMTPD) with ESMTPSA id 0642ea72 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Tue, 10 Jul 2018 09:13:54 +0000 (UTC) Date: Tue, 10 Jul 2018 11:13:53 +0200 Message-Id: <87fu0rihbi.fsf@lassieur.org> To: control@debbugs.gnu.org From: clement@lassieur.org (=?utf-8?Q?Cl=C3=A9ment?= Lassieur) Subject: control message for bug #30939 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) severity 30939 important From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 26 14:07:24 2019 Received: (at 30939) by debbugs.gnu.org; 26 Jun 2019 18:07:24 +0000 Received: from localhost ([127.0.0.1]:37016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgCKI-0004n6-CB for submit@debbugs.gnu.org; Wed, 26 Jun 2019 14:07:22 -0400 Received: from mx2.mailbox.org ([80.241.60.215]:22598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hgCKG-0004mo-7E for 30939@debbugs.gnu.org; Wed, 26 Jun 2019 14:07:20 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id F2F9FA001A for <30939@debbugs.gnu.org>; Wed, 26 Jun 2019 20:07:13 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id 9CXJF8rd499E for <30939@debbugs.gnu.org>; Wed, 26 Jun 2019 20:07:08 +0200 (CEST) From: Robert Vollmert Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: still relevant Message-Id: Date: Wed, 26 Jun 2019 20:07:06 +0200 To: 30939@debbugs.gnu.org X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 30939 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) This came up again recently, compare the discussion here: https://lists.gnu.org/archive/html/guix-devel/2019-06/msg00186.html Here=E2=80=99s some code to wrap an executable manually to capture its = output and send it to syslog: (define* (logger-wrapper name exec . args) "Return a derivation that builds a script to start a process with standard output and error redirected to syslog via logger." (define exp #~(begin (use-modules (ice-9 popen)) (let* ((pid (number->string (getpid))) (logger #$(file-append inetutils "/bin/logger")) (args (list "-t" #$name (string-append "--id=3D" pid))) (pipe (apply open-pipe* OPEN_WRITE logger args))) (dup pipe 1) (dup pipe 2) (execl #$exec #$exec #$@args)))) (program-file (string-append name "-logger") exp)) From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 05 10:28:47 2020 Received: (at control) by debbugs.gnu.org; 5 Apr 2020 14:28:47 +0000 Received: from localhost ([127.0.0.1]:46455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jL6GU-0007kM-TO for submit@debbugs.gnu.org; Sun, 05 Apr 2020 10:28:47 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:4101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jL6GS-0007jq-LM for control@debbugs.gnu.org; Sun, 05 Apr 2020 10:28:45 -0400 Received: from webmail.gandi.net (webmail18.sd4.0x35.net [10.200.201.18]) (Authenticated sender: brice@waegenei.re) by relay1-d.mail.gandi.net (Postfix) with ESMTPA id 45B89240004 for ; Sun, 5 Apr 2020 14:28:37 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 05 Apr 2020 14:28:37 +0000 From: Brice Waegeneire To: control@debbugs.gnu.org Subject: merge 36264 30939 Message-ID: <10441295b633fc99948b7eed4aad51f3@waegenei.re> X-Sender: brice@waegenei.re User-Agent: Roundcube Webmail/1.3.8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) severity 36264 important merge 36264 30939 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 18 12:44:15 2020 Received: (at 30939) by debbugs.gnu.org; 18 Jul 2020 16:44:15 +0000 Received: from localhost ([127.0.0.1]:59305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jwpwd-0007Xb-71 for submit@debbugs.gnu.org; Sat, 18 Jul 2020 12:44:15 -0400 Received: from mail-ej1-f46.google.com ([209.85.218.46]:46260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jwpgi-000721-T0 for 30939@debbugs.gnu.org; Sat, 18 Jul 2020 12:27:49 -0400 Received: by mail-ej1-f46.google.com with SMTP id p20so13946917ejd.13 for <30939@debbugs.gnu.org>; Sat, 18 Jul 2020 09:27:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rPhz8hIpWflhGvU6Y1rgJHnSX4yEJgpmng/WLralLg8=; b=GyhklGAYaQ/jRrH3Q07YcMKHGN7tXIqzWkbPlrPQ2SK+0jfENe0QXN5xqG3fLMwUC2 c6vKRC/11U8vh9FmeDEp+eEDtXJCcZP/HJxnp7FMs3p9xTt/X5utDIfNG7qPJqWL3Kb0 uSIz2FxkRvd7EyaEHLG8/5QWjDpnJATeo/9Z+Iae59bI7f+5ZXj1gnuOygbz0p2fcfZQ Uy6dTbyZvFo4pKeT34FoGDIuk7JiKfnCrKf5R/moujpM1MBXT0LjLP7hVENIcM+DlTLC CV0Ys3anf3+8E/q/1ZtcR8VUL7G3Tfvql6fauXx9eKUthG/hKA1OdKzyY8fDevABaZwZ Vmng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rPhz8hIpWflhGvU6Y1rgJHnSX4yEJgpmng/WLralLg8=; b=mzbENMwGmHOZoUYycOlFc4ENWyd8drQ47i3XStZyW2BkHBlVaOuXlQVvWCk3zbuYVd 0h/QTb07JckrYBzTMaHnrxBXYZ5VXbagYIGhhZkHUZaaAlI3Lu8vIzMsN1yOHzyEYA9f Xmze/K0QBwIjBnTnr5YLv0BgE17ZWLEIstXfUAsMS27cCY1hGYMg+sd30fADtjA/Lbke Y+b3+gvU0rjRVdehB7nY8x0MXjikYZ7TCtMui+iKqmIfgxhJOfLc7I4eTepFQn4ubcNm iwRHZjyaeWvT9NfM50FimDcXAacsN5OIvbfcjPilNBv3cQp8DU3o1ffHDvhDShA5ggZV L/6Q== X-Gm-Message-State: AOAM530l9dujsmeCvmVBRxDQogqFctTpPeX1INapgfXs5xhSHhkktopI l5y5C5CpxqMc2LXZPlJGxFWVIorEul/T/VvJy9odag== X-Google-Smtp-Source: ABdhPJyIq3F3Dc35JXsflcuQ3BmxUjZ40v/Ram4kkjNXqtKKdJlUo/zi02ZKQ59G1wQOPj69SJbSJ7xmdkVuT+bfe/4= X-Received: by 2002:a17:906:1245:: with SMTP id u5mr13233462eja.286.1595089662696; Sat, 18 Jul 2020 09:27:42 -0700 (PDT) MIME-Version: 1.0 From: conjaroy Date: Sat, 18 Jul 2020 12:27:06 -0400 Message-ID: Subject: shepherd: detailed output should be placed into well-known location and not tty To: 30939@debbugs.gnu.org Content-Type: multipart/alternative; boundary="000000000000bae28205aab9c0a7" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30939 X-Mailman-Approved-At: Sat, 18 Jul 2020 12:44:14 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000bae28205aab9c0a7 Content-Type: text/plain; charset="UTF-8" Hello - I too have found that debugging is a challenge when a service's stdout/stderr aren't captured automatically. From my point of view though, the issue is not just that certain binaries lack syslog support: since a service implementation's gexp can do much more than just exec a binary, and since mistakes in gexps usually go unnoticed until a runtime, I've found it easy to write scripts that trigger fatal Guile errors before the service binary is even started (syntax errors, missing `use-modules` declarations, etc.) Will the solution proposed here capture output for this class of errors as well? --000000000000bae28205aab9c0a7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello -

I too have found tha= t debugging is a challenge when a service's stdout/stderr aren't ca= ptured automatically. From my point of view though, the issue is not just t= hat certain binaries lack syslog support: since a service implementation= 9;s gexp can do much more than just exec a binary, and since mistakes in ge= xps usually go unnoticed until a runtime, I've found it easy to write s= cripts that trigger fatal Guile errors before the service binary is even st= arted (syntax errors, missing `use-modules` declarations, etc.)
<= br>
Will the solution proposed here capture output for this class= of errors as well?
--000000000000bae28205aab9c0a7-- From unknown Sun Jun 15 10:53:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Oct 2024 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator