mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 12:20:09 +01:00
systemd: make NetworkManager reloadable via SIGHUP
Sincef9e4af2, 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 commita858b383c3)
This commit is contained in:
parent
4e0882e923
commit
2806fc985b
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue