NetworkManager/src/nm-dispatcher
Gris Ge 3cdce71b95 dispatch dns-change dispatcher event
Introducing new dispatcher event -- `dns-change` which will be emitted when
DNS configuration changed(even in `dns=none` mode). This is to solve two
use cases:
 * Invoke dispatch script for DNS changes triggered by the global DNS
   API.

 * Do not invoke [OpenShift resolv-prepender][1] for non-DNS changes.

Bug reference: https://issues.redhat.com/browse/RHEL-1671

[1]: https://github.com/openshift/machine-config-operator/blob/master/templates/common/on-prem/files/resolv-prepender.yaml

Signed-off-by: Gris Ge <fge@redhat.com>
(cherry picked from commit a1db61ebc9)
2023-10-18 14:24:34 +08: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 dispatch dns-change dispatcher event 2023-10-18 14:24:34 +08: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 doc: replace all (allow-none) annotations by (optional) and/or (nullable) 2023-03-27 11:49:43 +02: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])