News for hackers. Stuff that matters.
Re:A Word about Systemd by rendaw on Tuesday September 17, 2024 @11:46PM (#41575572)
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.
Re:A Word about Systemd by Nextgrid on Wednesday September 18, 2024 @06:17AM (#41577915)
If 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.
Re:A Word about Systemd by akerl_ on Wednesday September 18, 2024 @07:52AM (#41578561)
One 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.
Re:A Word about Systemd by rendaw on Wednesday September 18, 2024 @01:31PM (#41582907)
Oh 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?