Search Criteria
Package Details: networkmanager-dispatcher-chrony 2.1-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/networkmanager-dispatcher-chrony.git (read-only, click to copy) |
---|---|
Package Base: | networkmanager-dispatcher-chrony |
Description: | Dispatcher Script for chrony |
Upstream URL: | https://wiki.gnome.org/Projects/NetworkManager |
Keywords: | chrony dispatcher networkmanager ntp script |
Licenses: | MIT |
Submitter: | Freso |
Maintainer: | Freso |
Last Packager: | Freso |
Votes: | 70 |
Popularity: | 0.001317 |
First Submitted: | 2011-11-01 22:21 (UTC) |
Last Updated: | 2015-07-12 13:43 (UTC) |
Latest Comments
soylens commented on 2023-09-11 13:04 (UTC)
The current logic of the dispatcher script causes chrony to go online as soon as the loopback device goes up. It sort of contradicts the purpose of the script halting chrony when no connection is available. My suggestions: Either do the same connectedness check before going online as going offline, or blacklist devices like
lo
from the script. Beware that the result ofnmcli g
at the time where the dispatcher is running could beconnected (site only)
instead ofconnected
. Also I would like to point to the possibility of usingchronyc onoffline
to let chrony decide whether to go on- or offline. However, I'm having trouble with a dispatcher script usingonoffline
, in that chrony remains offline after my WLAN connects automatically on startup. Usingonline
instead, or connecting only after startup has finished, doesn't pose the problem.pcmoore commented on 2019-06-14 02:27 (UTC)
I made some small changes to add NTP servers from DHCP and use chrony's built in network route detection to mark servers on/offline. If anyone is interested, I've put a copy up at the link below:
lotia commented on 2018-09-28 22:40 (UTC) (edited on 2018-09-28 22:46 (UTC) by lotia)
This script is errorring because it can't find 'which'. The error in the systemd journal is
/etc/NetworkManager/dispatcher.d/10-chrony: line 9: which: command not found
Instead it is possible to use 'command -v' to get the path of chronyc on line 9.
https://ptpb.pw/CW6Q has a patch that has been confirmed working.
sampurna commented on 2014-12-10 07:07 (UTC)
<deleted-account> commented on 2014-10-06 13:51 (UTC)
Freso commented on 2014-08-14 08:53 (UTC)
troyengel commented on 2014-08-11 22:53 (UTC)
troyengel commented on 2014-08-11 21:30 (UTC)