systemctl cat myunit.service
prints the contents of the main myunit.service
file followed by any override files. Is there a way to print the unit file that systemd will actually use, i.e. the one formed from merging the overrides into the main unit?
You can use
systemctl show myunit.service
to display properties of the unit. It will print all properties associated with that unit file, global configuration and any customizations made in unit file(s).By default, empty properties are suppressed. Use --all to show those too.
systemctl show myunit.service --all
If you want to check a given property, use the following synthax:
Note that the output may be not exactly what you expect: