diff options
author | Thomas Haller <thaller@redhat.com> | 2015-04-17 15:06:46 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-10-07 13:59:30 +0200 |
commit | 2806fc985b05ebc760f236aa0c697bd07ac71fe0 (patch) | |
tree | 9b7905e00d17bc2fb8da0cf6cc6cfc2da1c20f32 | |
parent | 4e0882e9239bffd89fe84df74fb2f0663624fc17 (diff) | |
download | NetworkManager-2806fc985b05ebc760f236aa0c697bd07ac71fe0.tar.gz |
systemd: make NetworkManager reloadable via SIGHUP
Since f9e4af2, parts of the configuration can be reloaded
by sending SIGHUP to NetworkManager. Add ExecReload option
to service file to support reloading by sending a signal.
Note that 'man 5 systemd.service' advices to use a blocking
command instead of a sending a signal. Later we should add a
D-Bus method to allow reloading synchronously. For now, this
is better then nothing.
https://mail.gnome.org/archives/networkmanager-list/2015-April/msg00042.html
(cherry picked from commit a858b383c348c2a43e63be325156b68e3789441a)
-rw-r--r-- | data/NetworkManager.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/data/NetworkManager.service.in b/data/NetworkManager.service.in index b2e61ffbca..980573d31c 100644 --- a/data/NetworkManager.service.in +++ b/data/NetworkManager.service.in @@ -6,6 +6,7 @@ Before=network.target @DISTRO_NETWORK_SERVICE@ [Service] Type=dbus BusName=org.freedesktop.NetworkManager +ExecReload=/bin/kill -HUP $MAINPID ExecStart=@sbindir@/NetworkManager --no-daemon Restart=on-failure # NM doesn't want systemd to kill its children for it |