mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-04 04:47:59 +02:00
systemd: update service unit file to use dbus-send for ExecReload
instead of `kill -HUP`. We support "org.freedesktop.NetworkManager.Reload" D-Bus method for a long time now. Use it because it is synchronous.
This commit is contained in:
parent
3223d92eea
commit
a675a619f4
1 changed files with 2 additions and 2 deletions
|
|
@ -8,8 +8,8 @@ Before=network.target @DISTRO_NETWORK_SERVICE@
|
|||
[Service]
|
||||
Type=dbus
|
||||
BusName=org.freedesktop.NetworkManager
|
||||
#ExecReload=/usr/bin/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.Reload uint32:0
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
ExecReload=/usr/bin/dbus-send --print-reply --system --type=method_call --dest=org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.Reload uint32:0
|
||||
#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