mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 20:45:32 +00:00
d25a33f604
The advantage of environment variables is that the user can use `systemctl edit NetworkManager-dispatcher.service` for setting them, without need to change the ExecStart= line. Also, enabling debugging from the start is useful, despite that debug logging can be enabled per-request. Also, there is a difference whether we want verbose logging or whether we want to log to stdout. There should be a flag, that only increases the logging verbosity, but does not change the logging backend.
23 lines
641 B
SYSTEMD
23 lines
641 B
SYSTEMD
[Unit]
|
|
Description=Network Manager Script Dispatcher Service
|
|
|
|
[Service]
|
|
Type=dbus
|
|
BusName=org.freedesktop.nm_dispatcher
|
|
ExecStart=@libexecdir@/nm-dispatcher
|
|
NotifyAccess=main
|
|
|
|
# Enable debug logging in dispatcher service. Note that dispatcher
|
|
# also honors debug logging requests from NetworkManager, so you
|
|
# can also control logging requests with
|
|
# `nmcli general logging domain DISPATCHER level TRACE`.
|
|
#Environment=NM_DISPATCHER_DEBUG_LOG=1
|
|
|
|
# We want to allow scripts to spawn long-running daemons, so tell
|
|
# systemd to not clean up when nm-dispatcher exits
|
|
KillMode=process
|
|
|
|
[Install]
|
|
Alias=dbus-org.freedesktop.nm-dispatcher.service
|
|
|