Recursive dependency tree
Walk the full Wants/Requires tree to debug why a service pulls in others; --reverse for who needs it
systemctl list-dependencies <unit> --all
- tool
- systemd26 commands
More systemd commands
-
systemctl show -p MainPID,MemoryCurrent,TasksCurrent <unit>Read live cgroup metrics straight from systemd without ps; MemoryCurrent is the accounted RSS
-
systemctl reset-failed && systemctl list-units --state=failedReset failed counters so units can restart past StartLimitBurst, then list what is still failed
-
systemd-run --on-calendar='*-*-* 03:00:00' --unit=backup /usr/local/bin/backup.shSpin up a throwaway timer+service without writing unit files; great for ad-hoc scheduled jobs
-
systemctl set-property --runtime <unit> MemoryMax=512M CPUQuota=50%Apply cgroup limits live without restart; --runtime keeps them volatile (gone on reboot)
-
systemctl list-jobsShow in-flight start/stop jobs to diagnose a hung boot or a unit stuck activating