4 ms·
For the vast majority of projects using Linux as their server OS, wouldn't it be simpler to just have systemd start the service and include `Restart=on-failure`
by stephenr 6y ago
For the vast majority of projects using Linux as their server OS, wouldn't it be simpler to just have systemd start the service and include `Restart=on-failure` in the unit file?
- anderspitman 6y agoI don't know about vast majority, but for many, yes. Where health checks come in handy for me is when my services are unreliable. I find it pretty common that my services don't crash outright, but they get into weird states that make them nonfunctional. systemd doesn't help you there, since it only cares if the process is still running. Something like stealthcheck makes it easy to run smoke tests (or even full integration tests) and force restart the service if they fail. Then again maybe I'm just bad at writing services.