From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: weird errors; shepherd Date: Wed, 24 Jan 2018 20:36:52 +0100 Message-ID: <20180124203652.75d95d48@scratchpost.org> References: <87a7xhmpht.fsf@gnu.org> <20180114114346.78977872@scratchpost.org> <20180122115908.588a1d06@scratchpost.org> <20180122200146.545ef7f6@scratchpost.org> <20180123234318.3463d51d@scratchpost.org> <87zi53xqiz.fsf@gnu.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:4830:134:3::10]:55834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeQr0-0001Qt-Qz for guix-devel@gnu.org; Wed, 24 Jan 2018 14:37:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeQqx-0000Sq-NC for guix-devel@gnu.org; Wed, 24 Jan 2018 14:37:02 -0500 In-Reply-To: <87zi53xqiz.fsf@gnu.org> 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: Ludovic =?ISO-8859-1?Q?Court=E8s?= Cc: guix-devel Hi Ludo, On Wed, 24 Jan 2018 15:47:16 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > I=E2=80=99m not sure what you mean. There=E2=80=99s no notion of depende= ncies among > activation snippets, let alone between activation snippets and service > starts (when booting, activation snippets run *before* shepherd is > started). Perhaps there=E2=80=99s a misunderstanding here? Yeah, if it's intended that way, that's fine. So it's like /etc/rc.local and it just runs the snippets in any order? Now, I just do both the trytond DB-upgrading and the service starting at the "start" action because postgres isn't running yet otherwise. > > As far as I understand make-forkexec-constructor takes special care n= ot > > to kill stderr. As long there's no log-file specified it should leav= e stdout > > and stderr alone. So where does the text go? =20 >=20 > To PID 1=E2=80=99s stdout/stderr, i.e., /dev/console (which sucks). Really? I don't see it in the marionette os output (for make check-system)= -=20 I just tried it again, stdout is nowhere to be seen with check-system. (I just put a program-file as shepherd start action and called "display" th= ere) Also tried (marionette-eval '(current-output-port (open-file "/dev/console" = "w0")) = marionette) (marionette-eval '(current-error-port (open-file "/dev/console" = "w0")) = marionette) but that didn't change anything either... > > I've had other problems like: > > > > * root's shepherd hangs sometimes and herd can't connect to it anymore.= =20 >=20 > That=E2=80=99s a serious bug. Can you reproduce it? I'll try. > That=E2=80=99s inconvenient but =E2=80=9Cexpected=E2=80=9D in the sense t= hat the =E2=80=98start=E2=80=99 method > is called right from shepherd.conf. Perhaps we should call =E2=80=98star= t=E2=80=99 at a > later stage. Well, as it is it makes the system very brittle. Once one service does that... oops.