Show service environment
Print the environment variables set for the service
systemctl show myapp.service -p Environment
- tool
- systemd26 commands
More systemd commands
-
systemd-analyze critical-chain <unit>Show the chain of units that really delays boot; more honest than blame
-
systemd-analyze plot > boot.svgSave the whole parallel boot timeline as SVG to see where units wait for each other
-
systemctl edit <unit> # writes /etc/systemd/system/<unit>.d/override.confChange a unit without touching the vendor file; --full copies the whole unit for editing
-
systemctl daemon-reloadRun it after manual edits, otherwise systemctl warns that the config is outdated
-
systemctl mask <unit> && systemctl unmask <unit>mask links the unit to /dev/null, so it cannot start even as a dependency (stronger than disable); unmask undoes it