NetworkManager/clients/cli
Thomas Haller e7ebf1efff 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.

(cherry picked from commit 1d0e0eeffd)
2016-06-10 11:14:38 +02:00
..
agent.c cli: remove version check against NM 2016-05-02 10:45:39 +02:00
agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
common.c cli: declare external variable nm_cli in <nmcli.h> header 2016-05-03 11:59:35 +02:00
common.h cli: do not echo passwords on terminal when asking for them 2015-12-07 14:14:58 +01:00
connections.c cli: remove wrong assertion in check_valid_name() 2016-05-19 17:13:03 +02:00
connections.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
devices.c cli: declare external variable nm_cli in <nmcli.h> header 2016-05-03 11:59:35 +02:00
devices.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
general.c manager: add Reload() D-Bus command 2016-06-10 11:14:38 +02:00
general.h cli: add nmcli monitor 2015-12-05 12:16:23 +01:00
Makefile.am build: disable deprecation checks for internal compilation 2016-04-05 22:22:58 +02:00
nmcli-completion nmcli-completion: complete filename for VPN import and passwd-file 2016-05-19 13:12:02 +02:00
nmcli.c cli: remove version check against NM 2016-05-02 10:45:39 +02:00
nmcli.h cli: declare external variable nm_cli in <nmcli.h> header 2016-05-03 11:59:35 +02:00
polkit-agent.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
polkit-agent.h cli: add 'nmcli agent' command (bgo #739568) 2014-11-07 11:58:25 +01:00
settings-docs.xsl clients: reorganize source tree, put all the installed clients together 2014-07-30 15:56:19 -04:00
settings.c cli: add support for DNS priority 2016-06-10 11:14:37 +02:00
settings.h cli: refactor property to string conversion 2015-06-05 12:26:48 +02:00
utils.c cli: remove unused functions 2016-05-03 11:59:35 +02:00
utils.h cli: remove unused functions 2016-05-03 11:59:35 +02:00