GNOME Bugzilla – Bug 741587
systemd does not restart NetworkManager.service after crashes
Last modified: 2015-01-12 15:51:03 UTC
Created attachment 292794 [details] [review] patch If NetworkManager crashes, systemd does not restart it, but it should. From Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773213 Attached patch tells systemd to restart NetworkManager.service if the binary exited with non-zero return value, like it does whith asserts or crashes.
This looks like the right thing to do. Anybody know the reason, we don't do that already?
(In reply to comment #1) > Anybody know the reason, we don't do that already? In my experience, NM tends to get automatically restarted via D-Bus auto-activation immediately after crashing. (I've had to "systemctl disable NetworkManager.service" to keep that from happening if I want to start NM under gdb.) So probably no one ever noticed that it doesn't get auto-restarted in other scenarios. Patch LGTM too.
pushed to git master: fe95185f6f9f0e3bd3a71024b8b916bca2dc397f