From 22ea5da1ab04b34c0db8fcd5fe4482f786153e80 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 9 Jun 2014 12:10:45 +0200 Subject: [PATCH] call chronyc directly from logrotate and NM dispatcher scripts --- chrony.logrotate | 2 +- chrony.nm-dispatcher | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chrony.logrotate b/chrony.logrotate index 4bb83b2..e0cd83c 100644 --- a/chrony.logrotate +++ b/chrony.logrotate @@ -3,6 +3,6 @@ nocreate sharedscripts postrotate - /usr/libexec/chrony-helper command cyclelogs > /dev/null 2>&1 || true + /usr/bin/chronyc -a cyclelogs > /dev/null 2>&1 || true endscript } diff --git a/chrony.nm-dispatcher b/chrony.nm-dispatcher index fea2723..ccf409f 100644 --- a/chrony.nm-dispatcher +++ b/chrony.nm-dispatcher @@ -4,12 +4,12 @@ export LC_ALL=C if [ "$2" = "up" ]; then /sbin/ip route list dev "$1" | grep -q '^default' && - /usr/libexec/chrony-helper command online > /dev/null 2>&1 + /usr/bin/chronyc -a online > /dev/null 2>&1 fi if [ "$2" = "down" ]; then /sbin/ip route list | grep -q '^default' || - /usr/libexec/chrony-helper command offline > /dev/null 2>&1 + /usr/bin/chronyc -a offline > /dev/null 2>&1 fi exit 0