dispatcher: tell systemd to not kill dispatcher children
authorDan Winship <danw@gnome.org>
Mon, 31 Mar 2014 17:02:16 +0000 (13:02 -0400)
committerDan Winship <danw@gnome.org>
Fri, 18 Apr 2014 15:32:12 +0000 (11:32 -0400)
You're supposed to be able to use dispatcher scripts to spawn
long-running processes, but currently systemd will kill them when
nm-dispatcher exits. Fix that.

https://bugzilla.gnome.org/show_bug.cgi?id=725492

data/NetworkManager-dispatcher.service.in

index 442f67a..e1b9003 100644 (file)
@@ -6,6 +6,10 @@ Type=dbus
 BusName=org.freedesktop.nm_dispatcher
 ExecStart=@libexecdir@/nm-dispatcher.action
 
+# We want to allow scripts to spawn long-running daemons, so tell
+# systemd to not clean up when nm-dispatcher exits
+KillMode=process
+
 [Install]
 Alias=dbus-org.freedesktop.nm-dispatcher.service