NetworkManager/src/nm-dispatcher
Beniamino Galvani cc5ebf265d dispatcher: read device-handler's stdout into a dictionary
Device handlers need a way to pass data back to NetworkManager, such
as the ifindex and an error message. Allow them to return a dictionary
on standard output, where each line contains a "$key=$value" pair.
In the daemon, the dictionary is returned via the callback function.

(cherry picked from commit d72f26b875)
2024-02-21 11:49:17 +01:00
..
tests all: suppress wrong gcc-12 warning "-Wdangling-pointer" 2022-02-21 19:50:52 +01:00
meson.build build: fix linking libnm-log-null into different test programs 2021-07-05 14:51:27 +02:00
nm-dispatcher-utils.c dispatcher: pass user setting properties in the environment 2024-02-21 11:49:11 +01:00
nm-dispatcher-utils.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
nm-dispatcher.c dispatcher: read device-handler's stdout into a dictionary 2024-02-21 11:49:17 +01:00
nm-dispatcher.conf build: move "dispatcher/" to "src/nm-dispatcher/" 2021-02-28 18:56:09 +01:00
nm-dispatcher.xml build: move "dispatcher/" to "src/nm-dispatcher/" 2021-02-28 18:56:09 +01:00
org.freedesktop.nm_dispatcher.service.in build: move "dispatcher/" to "src/nm-dispatcher/" 2021-02-28 18:56:09 +01:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00

nm-dispatcher

Runs as a D-Bus activated, exit-on-idle service to execute user scripts (dispatcher scripts) on certain events.

The user does not directly configure this service, it gets controlled by NetworkManager. However, the user (or other applications) would place scripts in certain directories for the dispatcher service to execute them.

The systemd service is called NetworkManager-dispatcher.service.

See:

  • man 8 NetworkManager-dispatcher ([www])