[chrony-dev] [GIT] chrony/chrony.git branch master updated. 3.3-2-g8cbc68f

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


This is an automated email from git. It was generated because a ref
change was pushed to the "chrony/chrony.git" repository.

The branch, master has been updated
       via  8cbc68f28f96d48a7ee128fa91731ca02a598913 (commit)
      from  bf7aa5239431db821b6fdb4947c9b0ce64a6a084 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8cbc68f28f96d48a7ee128fa91731ca02a598913
Author: Christian Ehrhardt <christian.ehrhardt@xxxxxxxxxxxxx>
Date:   Wed Apr 18 15:44:21 2018 +0200

    examples: make nm-dispatcher script usable for networkd-dispatcher
    
    Historically there were plenty of callback based implementations around
    ifupdown via /etc/network/if-up and similar. NetworkManager added the
    dispatcher [1] feature for such a kind of functionality.
    
    But so far a systemd-networkd (only) systemd had no means to handle those
    cases. This is solved by networkd-dispatcher which is currently available
    at least in ArchLinux and Ubuntu.
    It takes away the responsibility to listen on netlink events in each
    application and provides a more classic script-drop-in interface to respond
    to networkd events [3].
    
    This commit makes the NM example compatible to be used by NetworkManager
    dispatcher as well as by networkd-dispatcher. That way we avoid too much
    code duplication and can from now on handle special cases in the
    beginning so that the tail can stay commonly used.
    
    After discussion on IRC the current check differs by checking the
    argument count (only in NetworkManager), if ever needed we could extend
    that to check for known custom environment vars (NetworkManager =>
    CONNECTION_UUID; networkd-dispatcher => OperationalState).
    
    [1]: https://developer.gnome.org/NetworkManager/stable/NetworkManager.html
    [2]: https://github.com/craftyguy/networkd-dispatcher
    [3]: https://github.com/systemd/systemd/blob/master/src/systemd/sd-network.h#L86
    
    Signed-off-by: Christian Ehrhardt <christian.ehrhardt@xxxxxxxxxxxxx>

-----------------------------------------------------------------------

Summary of changes:
 examples/chrony.nm-dispatcher | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
chrony/chrony.git

-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/