Message ID | 20221111181131.4171-1-ludo@gnu.org |
---|---|
Headers | show |
Series | Support 'herd configuration SERVICE' to view config file | expand |
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!
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’.