Commit graph

15 commits

Author SHA1 Message Date
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
Jiří Klimeš
b8d6bd1a98 clients: move clients/tui/vpn-helpers.c to clients/common/nm-vpn-helpers.c
The file has not been used up to now. But it is going to be used by both
nmtui and nmcli later.
2015-11-26 11:08:44 +01:00
Lubomir Rintel
66c3b673e3 build: work around automake-1.15 & intltool complaining about translations in build dir
make distcheck runs a build in dist directory subtirs and then runs intltool -m
which in turn complains about translations in a built file:

  The following files contain translations and are currently not in use. Please
  consider adding these to the POTFILES.in file, located in the po/ directory.

  sub/policy/org.freedesktop.NetworkManager.policy.in

The issue is reported to intltool upstream already:
https://bugs.launchpad.net/intltool/+bug/1117944
2015-05-05 13:34:19 +02:00
Thomas Haller
1f61cb82de po/test: add contrib/rpm directory to POTFILES.skip
Add contrib/fedora/rpm/ directory to POTFILES.skip.
Otherwise, after building an RPM, make check would fail
due to the source files from the rpmbuild.

Signed-off-by: Thomas Haller <thaller@redhat.com>
2014-11-07 21:50:43 +01:00
Dan Winship
3d25d70461 clients: reorganize source tree, put all the installed clients together
Create a new clients/ subdirectory at the top level, and move cli/ and
tui/ into it, as well as nm-online.c (which was previously in test/,
which made no sense).

cli/ was split into two subdirectories, src/ and completion/. While
this does simplify things (given that the completion file and the
binary both need to be named "nmcli"), it bloats the source tree, and
we can work around it by just renaming the completion file at install
time. Then we can combine the two directories into one and just have
it all under clients/cli/.
2014-07-30 15:56:19 -04:00
Dan Williams
14227fda8b po: fix handling of not-yet-used tui/vpn-helpers.c
tui/vpn-helpers.c is not yet used, so it shouldn't be translated yet.
Having it in po/POTFILES fails distcheck because, since it is not
yet used, it's not distributed, and thus can't be found in the
distcheck build.
2013-12-17 11:50:58 -06:00
Dan Winship
7005762f50 build: "make check" fixes 2012-10-04 09:07:49 -04:00
Dan Williams
a8c14b1d38 simplify POTFILES.skip (bgo #544428)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3866 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-27 21:32:45 +00:00
Gil Forcada
6ea351fd10 Fixed po/POTFILES.skip
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3849 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-25 16:56:54 +00:00
Kjartan Maraas
9228a199fd 2008-07-10 Kjartan Maraas <kmaraas@gnome.org>
* POTFILES.in: Move file from here to
	* POTFILES.skip: here.

git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3818 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-07-10 15:41:37 +00:00
Dan Williams
d02e8b4886 2007-08-13 Dan Williams <dcbw@redhat.com>
Patch from Michael Biebl <biebl@debian.org>

	* po/POTFILES.in
	  po/POTFILES.skip
		- Update for vpn-properties move



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2676 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2007-08-14 03:46:40 +00:00
Dan Williams
23527a52f7 2006-12-03 Dan Williams <dcbw@redhat.com>
Patch from Gabor Kelemen <kelemeng@gnome.hu>  (Gnome.org #381890)

	* po/POTFILES.in
	  po/POTFILES.skip
		- Move VPN-related translatables to .skip

	* vpn-daemons/pptp/po/POTFILES.in
		- Update with new translatables


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2153 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-12-03 19:13:45 +00:00
Adam Weinberger
9a680fdef1 2006-01-11 Adam Weinberger <adamw@gnome.org>
* en_CA.po: Updated Canadian English translation.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1315 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2006-01-11 17:55:04 +00:00
Robert Love
f3311defbc Move sv translations pertaining to the vpn-daemons to their po/, where they
belong.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@838 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-08-12 18:28:45 +00:00
Adam Weinberger
8e3651f935 2005-08-06 Adam Weinberger <adamw@gnome.org>
* POTFILES.skip: Add with obsoleted files.
	* en_CA.po: Updated Canadian English translation.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@826 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-08-07 02:28:08 +00:00