From: "Ludovic Courtès" <ludo@gnu.org>
To: 59197@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#59197] [PATCH 0/3] Support 'herd configuration SERVICE' to view config file
Date: Fri, 11 Nov 2022 19:11:31 +0100 [thread overview]
Message-ID: <20221111181131.4171-1-ludo@gnu.org> (raw)
Hi!
So far, to view the config file of sshd, elogind, etc., you'd have to do:
cat /proc/PID/cmdline | xargs -0
or sometimes:
cat /proc/PID/environ | xargs -0
and extract the config file name from there.
With this change, you can do:
cat $(herd configuration elogind)
or similar. Simple but convenient.
This patch series adds it to a few core services. Adding it elsewhere
is left as an exercise to the reader. :-)
Thoughts?
Ludo’.
Ludovic Courtès (3):
services: shepherd: Define 'shepherd-configuration-action' helper.
services: Add Shepherd 'configuration' action to various services.
home: services: redshift: Add 'configuration' action.
doc/guix.texi | 11 +++++++++++
gnu/home/services/desktop.scm | 3 ++-
gnu/home/services/shepherd.scm | 3 ++-
gnu/services/avahi.scm | 5 +++--
gnu/services/base.scm | 5 +++--
gnu/services/desktop.scm | 12 ++++++++----
gnu/services/networking.scm | 4 +++-
gnu/services/shepherd.scm | 12 ++++++++++++
gnu/services/ssh.scm | 6 +++++-
gnu/services/web.scm | 7 +++----
gnu/services/xorg.scm | 10 ++++++----
gnu/tests/base.scm | 6 ++++++
12 files changed, 64 insertions(+), 20 deletions(-)
base-commit: 1f5e8ef14ffa385907fc94a754cfff7a45fee50c
prerequisite-patch-id: ee11d213a4ee466dff6379eeaeea292b6ba93fb0
prerequisite-patch-id: 857e9a0f3d1bc9ad5584c44bc767683a53e44972
prerequisite-patch-id: b87a0615ac48fe8950281f797cd2d096a98f4a2c
prerequisite-patch-id: c554e46d5d315cd349df21ba153ef6ed580f0b3c
--
2.38.0
next reply other threads:[~2022-11-11 18:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-11 18:11 Ludovic Courtès [this message]
2022-11-11 18:12 ` [bug#59197] [PATCH 1/3] services: shepherd: Define 'shepherd-configuration-action' helper Ludovic Courtès
2022-11-11 18:12 ` [bug#59197] [PATCH 2/3] services: Add Shepherd 'configuration' action to various services Ludovic Courtès
2022-11-11 18:12 ` [bug#59197] [PATCH 3/3] home: services: redshift: Add 'configuration' action Ludovic Courtès
2022-11-14 2:16 ` [bug#59197] [PATCH 0/3] Support 'herd configuration SERVICE' to view config file 宋文武 via Guix-patches via
2022-11-18 14:52 ` bug#59197: " 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
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=20221111181131.4171-1-ludo@gnu.org \
--to=ludo@gnu.org \
--cc=59197@debbugs.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).