Automatic restart policy.
Section: Restart Policy, Types, Hardening
Restart on failure
ini
ini
[Service]
Restart=on-failure
RestartSec=5Explanation
Common production resilience setting.
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 Restart Policy, Types, Hardening