mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 08:50:12 +01:00
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
|
||
|---|---|---|
| .. | ||
| tests | ||
| meson.build | ||
| nm-dispatcher-utils.c | ||
| nm-dispatcher-utils.h | ||
| nm-dispatcher.c | ||
| nm-dispatcher.conf | ||
| nm-dispatcher.xml | ||
| org.freedesktop.nm_dispatcher.service.in | ||
| README.md | ||
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])