systemd: enable indefinite service restarts

127 · · Jan. 17, 2024, 8:33 p.m.
When a service fails to start up enough times in a row, systemd gives up on it. On servers, this isn’t what I want — in general it’s helpful for automated recovery if daemons are restarted indefinitely. As long as you don’t have circular dependencies between services, all your services will eventually come up after transient failures, without having to specify dependencies. This is particularly useful because specifying dependencies on the systemd level introduces footguns: when interactively st...