From: "Ludovic Courtès" <ludo@gnu.org>
To: 宋文武 <iyzsong@envs.net>
Cc: 59197-done@debbugs.gnu.org
Subject: bug#59197: [PATCH 0/3] Support 'herd configuration SERVICE' to view config file
Date: Fri, 18 Nov 2022 15:52:14 +0100 [thread overview]
Message-ID: <87zgco9uxt.fsf_-_@gnu.org> (raw)
In-Reply-To: <87a64ub7rx.fsf@envs.net> ("宋文武"'s message of "Mon, 14 Nov 2022 10:16:02 +0800")
Hi,
宋文武 <iyzsong@envs.net> skribis:
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> 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. :-)
>
> Look great to me, thank you!
Thanks for taking a look!
I pushed these patches with two minor changes: added the ‘configuration’
action to dicod, and documented ‘shepherd-configuration-action’.
8b56983999 home: services: redshift: Add 'configuration' action.
8d9647d8a7 services: Add Shepherd 'configuration' action to various services.
ebc7de6a1e services: shepherd: Define 'shepherd-configuration-action' helper.
Ludo’.
prev parent reply other threads:[~2022-11-18 14:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-11 18:11 [bug#59197] [PATCH 0/3] Support 'herd configuration SERVICE' to view config file Ludovic Courtès
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 ` Ludovic Courtès [this message]
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=87zgco9uxt.fsf_-_@gnu.org \
--to=ludo@gnu.org \
--cc=59197-done@debbugs.gnu.org \
--cc=iyzsong@envs.net \
/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).