
Lennart sez: "Oh, I wasn't aware it is short-lived only. In that case, drop the multi-user.target bit, and just make it create the dbus alias. [Install] Alias=dbus-org.freedesktop.nm-dispatcher.service And yeah, adding Also=NetworkManager-dispatcher.service to NetworkManager.service certainly would be a good idea."
18 lines
384 B
SYSTEMD
18 lines
384 B
SYSTEMD
[Unit]
|
|
Description=Network Manager
|
|
Wants=network.target
|
|
Before=network.target
|
|
|
|
[Service]
|
|
Type=dbus
|
|
BusName=org.freedesktop.NetworkManager
|
|
ExecStart=@sbindir@/NetworkManager --no-daemon
|
|
# NM doesn't want systemd to kill its children for it
|
|
KillMode=process
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias=dbus-org.freedesktop.NetworkManager.service
|
|
Also=NetworkManager-dispatcher.service
|
|
|