Hi,

One of the features asked every now and then is how to keep ConnMan from
always writing resolv.conf. This RFC patch set makes ConnMan write its
resolv.conf file into [/var]/run/connman and unconditionally set up links
by default to this file from /etc/resolv.conf.

Patch 3/5 changes ConnMan to create the [/var]/run/connman directory and
always write resolv.conf to this location. In order to keep compatibility
with previous versions, patch 4/5 implements tmpfiles.d support to
unconditionally create the symlink to /etc when using systemd. Likewise,
the init script is updated in patch 5/5 with similar functionality, should
someone use that startup method.

In order to be a bit future-proof, the first patch introduces the
$(runstatedir) variable in a compatible manner, as the variable will
appear starting with automake 2.70. The two invocations of
$(localstatedir)/run are updated to use $(runstatedir) in patch 2/5.


Please review and comment,

       Patrik



Patrik Flykt (5):
  build: Define runstatedir
  build: Use runstatedir instead of deriving it from localstatedir
  resolver: Create STATEDIR and use it when writing resolv.conf
  src: Add tmpfiles.d support for resolv.conf
  scripts: Handle link to resolv.conf in init script

 .gitignore                         |  2 ++
 Makefile.am                        | 21 +++++++++++++++------
 configure.ac                       | 12 ++++++++++++
 m4/configmake.m4                   | 15 +++++++++++++++
 scripts/connman.in                 |  4 ++++
 scripts/connman_resolvconf.conf.in |  1 +
 src/main.c                         |  6 ++++++
 src/resolver.c                     |  2 +-
 8 files changed, 56 insertions(+), 7 deletions(-)
 create mode 100644 m4/configmake.m4
 create mode 100644 scripts/connman_resolvconf.conf.in

-- 
2.1.4

_______________________________________________
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Reply via email to