all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: rendaw <7e9wc56emjakcm@s.rendaw.me>
To: help-guix@gnu.org
Subject: Services and log management/monitoring
Date: Mon, 15 Apr 2019 03:12:23 +0900	[thread overview]
Message-ID: <67f09d8d-3ca6-90a0-6e72-c85ec9d1572f@s.rendaw.me> (raw)

The manual talks about standard services vs shepherd services, but
doesn't really discuss which either are.  My impression is a standard
service is simply a process guix runs on the system (at startup, based
on the graph?), where a shepherd service is a process that is managed
(may be manually started/stopped, automatically restarted, is watched)
by shepherd.

Is that interpretation correct?  My expectation would then be that you
should generally use shepherd services, except when you want very fine
control over how the service is managed.

Do shepherd services automatically get enabled and start when configured
in a guix config?

Okay, just reread everything and I'm quite confused.  It says shepherd
is pid 1, so "shepherd" services are the more fundamental service type?
But the manual says that shepherd services are a particular type of
service, which implies the opposite.  Why would one use "service"
instead of "shepherd-service" (or vice-versa)?

Is it possible to define a service which depends on a shepherd-service?
What about the reverse?

--

On logging - one of the things I like about systemd is that all services
log their stdout/err and there's a standard way to retrieve logs, and
especially query logs from a particular time range/boot.  It also
exposes dbus events when service statuses change - so it's pretty easy
to send a notification if a service dies for instance, maybe with the
logs from the 10m leading up to the issue.

I couldn't find anything about logging and monitoring in the guix manual
(other than statistic collecting agents/dashboards).  In the shepherd
manual all I could find was a note that services send stdout/stderr to
syslog.  Are any of the above possible with this setup?  I've used
syslog systems for years up until systemd, but my impression was that it
was basically a pile of random files you can read manually if you really
must.

Do non-shepherd services also log somewhere?

             reply	other threads:[~2019-04-14 18:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-14 18:12 rendaw [this message]
2019-04-17 21:20 ` Services and log management/monitoring Ludovic Courtès
2019-04-18 15:11   ` rendaw
2019-04-19 12:09     ` Ludovic Courtès
2019-04-19 15:47       ` rendaw
2019-05-04  7:01         ` Chris Marusich
2019-05-04  8:01           ` rendaw
2019-05-04  8:24             ` Chris Marusich
2019-05-04  8:32               ` rendaw

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=67f09d8d-3ca6-90a0-6e72-c85ec9d1572f@s.rendaw.me \
    --to=7e9wc56emjakcm@s.rendaw.me \
    --cc=help-guix@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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.