unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Adam Faiz <adam.faiz@disroot.org>
Cc: guix-devel@gnu.org
Subject: Re: The 🐑 Shepherd gets a service collection
Date: Thu, 16 Mar 2023 15:14:49 +0100	[thread overview]
Message-ID: <874jqkeqau.fsf@gnu.org> (raw)
In-Reply-To: <bd0df1bf-6435-7f18-46f3-c25079769dc2@disroot.org> (Adam Faiz's message of "Mon, 13 Mar 2023 23:39:32 +0000")

Hi,

Adam Faiz <adam.faiz@disroot.org> skribis:

>> I imagine we could develop more convenient services like this, such
>> as basic command scheduler similar to the ‘at’ command, and a
>> syslogd
>> implementation.  The latter could be nice for a couple of reasons:
>> logging would happen from the start and till the end (an improvement
>> over the external syslogd process), and it could let us provide a nicer
>> user interface to view logs (taking inspiration from that of
>> ‘journalctl’).
>> Thoughts?  Ideas?I don't think a command scheduler should be added
>> to the Shepherd, isn't that what mcron does?
> If mcron has any deficiencies for being used as an `at` command, then that can be improved.

The main limitation of mcron for such thing is that it’s entirely
static: it reads a list of job specs upfront and then goes on to
schedule them.  There’s no communication protocol to talk to it and
add/remove jobs on the fly, which is what ‘at’ would need.

> Regarding syslogd, I think a better approach is to tell the services to send their output to stdout and stderror,
> so that logs don't depend on a separate logging service in the first place.

Yes, but:

  1. Some daemons include syslog support even today, sometimes optional,
     sometimes mandatory.

  2. Syslog is a bit more structured than just stdout/stderr output:
     there are facilities and levels, for instance—see syslog(3);
     syslogd provides interesting filtering capabilities.

> Per-service logging is already implemented in the Shepherd, but could be streamlined to have a default logs directory:
> https://skarnet.org/software/s6/s6-log.html#loggingchain

Interesting read, thanks!

Regarding the default logs directory, there’s /var/log already, or did
you mean something else?

Thanks,
Ludo’.


  reply	other threads:[~2023-03-16 14:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-13 23:39 The 🐑 Shepherd gets a service collection Adam Faiz
2023-03-16 14:14 ` Ludovic Courtès [this message]
2023-03-17  6:55   ` Adam Faiz
2023-03-17  9:52     ` Csepp
  -- strict thread matches above, loose matches on Subject: below --
2023-03-13 16:11 Ludovic Courtès
2023-03-13 19:59 ` indieterminacy
2023-03-14 12:20 ` Maxim Cournoyer
2023-03-16 14:16   ` Ludovic Courtès
2023-03-17 16:28     ` Maxim Cournoyer
2023-03-14 14:43 ` Efraim Flashner

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=874jqkeqau.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=adam.faiz@disroot.org \
    --cc=guix-devel@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).