Show service environment

Print the environment variables set for the service

systemctl show myapp.service -p Environment

tool
systemd26 commands
tags
systemddebug

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.svg

    Save 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.conf

    Change a unit without touching the vendor file; --full copies the whole unit for editing

  • systemctl daemon-reload

    Run 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

all 26 systemd commands