[PATCH 1/1] systemd: make NetworkManager reloadable via SIGHUP
- From: Thomas Haller <thaller redhat com>
- To: networkmanager-list gnome org
- Subject: [PATCH 1/1] systemd: make NetworkManager reloadable via SIGHUP
- Date: Fri, 17 Apr 2015 15:06:46 +0200
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.
---
data/NetworkManager.service.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/data/NetworkManager.service.in b/data/NetworkManager.service.in
index b2e61ff..980573d 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
--
2.1.0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]