I think I have basically understood how those systemd drop-in files
work, like /etc/httpd/conf.d/
or /etc/sudoers.d/
My question: is there some helper command to show the current aggregate result?
i.e. seeing how everything plays together in the .d
Folder and verifying i.e. that fooProperty
is finally true
not false
…
For service units you list all the properties with
systemctl show
or use option-p
or--property
to list just one. You can also usesystemctl cat
to concatenate all the various files, though without any merging of the information. Eg, for myhttp.service
:The above shows by a comment (highlighted in a terminal) the name of each of 2 files followed by its contents. You can see how the
override.conf
file provides a different value forPrivateTmp
. You can see the resulting value withHowever, this doesn't work with other units, like
httpd.socket
, which you canshow
as above, but which fails on a property in the files that I overrode:I'm using version 231, things may have changed.