all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Guix Devel <guix-devel@gnu.org>
Subject: shepherd: prefix output with service names?
Date: Wed, 14 Dec 2022 11:38:10 +0100	[thread overview]
Message-ID: <87tu1ytgdq.fsf@elephly.net> (raw)

Hi Guix,

here is some output from “guix system reconfigure”:

--8<---------------cut here---------------start------------->8---
…
activating system...
The following derivation will be built:
  /gnu/store/7361cd8aasxwwb93ygdfwjp3ghn06ahb-switch-to-system.scm.drv

building /gnu/store/7361cd8aasxwwb93ygdfwjp3ghn06ahb-switch-to-system.scm.drv...
making '/gnu/store/rp04hkqlzx5j2lhxainsz77vpqqigsjz-system' the current system...
setting up setuid programs in '/run/setuid-programs'...
populating /etc from /gnu/store/gq2dvz09wf3sdmvynr2vdzy5wwj7k9fd-etc...
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.utf8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

initdb: error: directory "/var/lib/postgresql/data" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/var/lib/postgresql/data" or run initdb
with an argument other than "/var/lib/postgresql/data".
Starting installation ...
Validate installation settings ...
Create file system structures ...
Create self-signed certificate database ...
Error: Instance creation failed!  Failed to start DS
The following derivation will be built:
  /gnu/store/5jx2cj780cqs2pp575rckvrx45j9kysy-install-bootloader.scm.drv

building /gnu/store/5jx2cj780cqs2pp575rckvrx45j9kysy-install-bootloader.scm.drv...
guix system: bootloader successfully installed on '(/dev/sda)'
shepherd: Evaluating user expression (and (defined? (quote transient?)) (map (# ?) ?)).
The following derivation will be built:
  /gnu/store/q933nvsqjx2f9zra91jbpjvb9x2yf2sn-upgrade-shepherd-services.scm.drv

building /gnu/store/q933nvsqjx2f9zra91jbpjvb9x2yf2sn-upgrade-shepherd-services.scm.drv...
shepherd: Service host-name has been started.
shepherd: Service user-homes has been started.
shepherd: Service sysctl has been started.
shepherd: Service host-name has been started.
shepherd: Service term-console could not be started.
shepherd: Service postgres-roles has been started.
shepherd: Service directory-server-localhost could not be started.
To complete the upgrade, run 'herd restart SERVICE' to stop,
upgrade, and restart each service that was not automatically restarted.
Run 'herd status' to view the list of services on your system.
--8<---------------cut here---------------end--------------->8---

You see that there is output of tools that run as part of service
activation snippets.  It is not clear which service is responsible for
any particular line of output.

What service produced the line “Error: Instance creation failed!  Failed
to start DS”, for example?  I know it’s the directory-server-localhost
service, because that’s what I’m working on right now, but it’s not
clear from the output.

What do you think of prefixing every line with the name of the service
that is responsible for it?  This way we could probably also
prettify/post-process the output somewhat.

-- 
Ricardo


             reply	other threads:[~2022-12-14 10:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-14 10:38 Ricardo Wurmus [this message]
2022-12-14 13:51 ` shepherd: prefix output with service names? Thompson, David
2022-12-14 14:18 ` Attila Lendvai
2022-12-15  3:47 ` Maxim Cournoyer
2022-12-15 15:04 ` Ludovic Courtès

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=87tu1ytgdq.fsf@elephly.net \
    --to=rekado@elephly.net \
    --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 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.