Mask a service

Prevent a service from being started by anything

systemctl mask snapd.service

tool
systemd26 commands
tags
systemdsecurity

More systemd commands

  • systemctl show myapp.service -p Environment

    Print environment variables injected into the service

  • 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

all 26 systemd commands