Fail if the required unit is absent or stopped.
Section: Environment, Users, Dependencies
Require another unit
ini
ini
[Unit]
Requires=postgresql.service
After=postgresql.serviceExplanation
Stronger relationship than Wants.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Environment, Users, Dependencies