core: tell systemd to restart NetworkManager.service if it exited with failure (bgo #741587)

Crashed NetworkManager.service was not restarted by systemd.

Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>

https://bugzilla.gnome.org/show_bug.cgi?id=741587
This commit is contained in:
Mikko Rapeli 2014-12-15 16:47:45 +01:00 committed by Dan Williams
parent 0d266a6287
commit fe95185f6f

View file

@ -7,6 +7,7 @@ Before=network.target @DISTRO_NETWORK_SERVICE@
Type=dbus
BusName=org.freedesktop.NetworkManager
ExecStart=@sbindir@/NetworkManager --no-daemon
Restart=on-failure
# NM doesn't want systemd to kill its children for it
KillMode=process