From: Danny Milosavljevic <dannym@scratchpost.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: weird errors; shepherd
Date: Wed, 24 Jan 2018 20:36:52 +0100 [thread overview]
Message-ID: <20180124203652.75d95d48@scratchpost.org> (raw)
In-Reply-To: <87zi53xqiz.fsf@gnu.org>
Hi Ludo,
On Wed, 24 Jan 2018 15:47:16 +0100
ludo@gnu.org (Ludovic Courtès) wrote:
> I’m not sure what you mean. There’s no notion of dependencies among
> activation snippets, let alone between activation snippets and service
> starts (when booting, activation snippets run *before* shepherd is
> started). Perhaps there’s 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 not
> > to kill stderr. As long there's no log-file specified it should leave stdout
> > and stderr alone. So where does the text go?
>
> To PID 1’s stdout/stderr, i.e., /dev/console (which sucks).
Really? I don't see it in the marionette os output (for make check-system) -
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" there)
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.
>
> That’s a serious bug. Can you reproduce it?
I'll try.
> That’s inconvenient but “expected” in the sense that the ‘start’ method
> is called right from shepherd.conf. Perhaps we should call ‘start’ at a
> later stage.
Well, as it is it makes the system very brittle.
Once one service does that... oops.
next prev parent reply other threads:[~2018-01-24 19:37 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-13 17:00 weird errors Catonano
2018-01-13 21:13 ` Ludovic Courtès
2018-01-14 7:21 ` Catonano
2018-01-14 10:43 ` Danny Milosavljevic
2018-01-14 10:57 ` Danny Milosavljevic
2018-01-14 11:00 ` Catonano
2018-01-14 16:38 ` Ricardo Wurmus
2018-01-14 20:35 ` Catonano
2018-01-14 16:45 ` Danny Milosavljevic
2018-01-14 20:33 ` Catonano
2018-01-15 5:43 ` Alex Vong
2018-01-22 10:52 ` Catonano
2018-01-22 10:59 ` Danny Milosavljevic
2018-01-22 12:42 ` Catonano
2018-01-22 19:01 ` Danny Milosavljevic
2018-01-22 20:37 ` Catonano
2018-01-23 22:43 ` weird errors; shepherd Danny Milosavljevic
2018-01-24 12:34 ` Catonano
2018-01-24 12:46 ` Danny Milosavljevic
2018-01-24 12:52 ` Catonano
2018-01-24 14:47 ` Ludovic Courtès
2018-01-24 19:36 ` Danny Milosavljevic [this message]
2018-01-24 22:28 ` Ludovic Courtès
2018-01-29 7:24 ` Catonano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180124203652.75d95d48@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).