Show what depends on a systemd service
Build a paste-ready command, then review its compatibility and effects before running it.
systemctl list-dependencies --reverse --all <service>Complete required fields to copy the generated command.
read-onlyno known side effects Compatibility
LinuxVerified for Linux using bash, zsh syntax.
Operational knowledgereview due 2027-01-19
Requirementssystemctlsystemctl must be installed and available on PATH.
Version supportsystemctl Current supported releasesVerified for linux using bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsnetwork-online.targetRepresentative successful output; values vary with the selected target and system state.
Known errorssystemctl: command not foundsystemctl is missing or is not available on PATH.
Verifysystemctl list-dependencies --reverse --all {{service}}The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01systemctlCommandRuns the systemctl stage of this one-liner.
02list-dependenciesArgumentPasses list-dependencies to systemctl.
03--reverseOptionReverses the normal direction or ordering.
04--allOptionIncludes entries that the command normally omits.
05<service>ParameterA value supplied in the Fill parameters section.
This advanced community-curated one-liner combines several stages. Review every option and placeholder before running it.
Example input
systemctl list-dependencies --reverse --all network-online.target
Example output
network-online.target
● ├─docker.service
● ├─kubelet.service
● ├─remote-fs.target
● └─multi-user.target
Illustrative output — exact values vary by system and data.
Official sources