Show environment of service

Print environment variables injected into the service

systemctl show myapp.service -p Environment

tool
systemd26 commands
tags
systemddebug

More systemd commands

  • systemd-analyze critical-chain <unit>

    Show the serialized dependency chain that actually delays boot; more honest than blame

  • systemd-analyze plot > boot.svg

    Render full parallel boot timeline as an SVG to spot serialized stalls visually

  • systemctl edit <unit> # writes /etc/systemd/system/<unit>.d/override.conf

    Patch a unit via drop-in without touching the vendor file; use --full to fork the whole unit

  • systemctl daemon-reload

    Reload unit files after editing; note: required after manual edits or systemctl warns of stale config

  • systemctl mask <unit> && systemctl unmask <unit>

    Mask symlinks a unit to /dev/null so it cannot start even as a dependency; stronger than disable

all 26 systemd commands