NetworkManager/tools
Thomas Haller 1d0e0eeffd manager: add Reload() D-Bus command
Add new Reload D-Bus command to reload NetworkManager configuration.

For now, this is like sending SIGHUP to the process. There are several
advantages here:

  - it is guarded via PolicyKit authentication while signals
    can only be sent by root.

  - the user can wait for the reload to be complete instead of sending
    an asynchronous signal. For now, we operation completes after
    nm_config_reload() returns, but later we could delay the response
    further until specific parts are fully reloaded.

  - SIGHUP reloads everything including re-reading configuration from
    disk while SIGUSR1 reloads just certain parts such as writing out DNS
    configuration anew.
    Now, the Reload command has a flags argument which is more granular
    in selecting parts which are to be reloaded. For example, via
    signals the user can:

      1) send SIGUSR1: this writes out the DNS configuration to
         resolv.conf and possibly reloads other parts without
         re-reading configuration and without restarting the DNS plugin.
      2) send SIGHUP: this reloads configuration from disk,
         writes out resolv.conf and restarts the DNS plugin.

    There is no way, to only restart the DNS plugin without also reloading
    everything else.
2016-06-01 19:06:34 +02:00
..
check-exports.sh tools/check-exports.sh: use ${NM} when available 2015-09-24 16:28:15 +02:00
debug-helper.py tools: move debug-helper.py from test/ to tools/ 2014-07-30 15:56:19 -04:00
enums-to-docbook.pl docs: include the D-Bus enums reference with the API documentation 2016-04-22 10:02:37 +02:00
Makefile.am tools: add forgotten file to dist 2016-04-23 20:08:01 +02:00
run-test-dbus-session.sh tests: fix bashism in run-test-dbus-session.sh 2016-03-03 13:45:50 +01:00
run-test-valgrind.sh platform: add network namespace support to platform 2016-03-07 12:28:13 +01:00
test-networkmanager-service.py manager: add Reload() D-Bus command 2016-06-01 19:06:34 +02:00
test-sudo-wrapper.sh nmtst: add nmtst_reexec_sudo() function 2014-06-05 18:12:57 +02:00