3 ms·
Okay, I assumed there are services that shouldn't restart if they crash given that that's the systemd default, but do you have an example? I don't think I've e
by rendaw 2y ago
Okay, I assumed there are services that shouldn't restart if they crash given that that's the systemd default, but do you have an example? I don't think I've ever encountered any, and I can't think of a situation where you'd want that.
- Nextgrid 2y agoIf you have access to a systemd-based system, you can try: grep -R Restart /etc/systemd/ /usr/lib/systemd/ And examine the returned unit files. But one of the examples I see is things like the SSH server (useful so you don't lose management access to a remote server), the virtual terminal process for local console logins, etc.
- akerl_ 2y agoOne of the examples from my world is generally databases. If I’m running a large or clustered DB, I probably don’t want it to just blindly restart on a crash.
- rendaw 2y agoOh interesting, here we have mysql on auto restart and IME it's critical to reliability since sometimes stuff happens and mysql goes down on a node. I guess different databases might require more manual intervention to recover?