Commit Graph

14 Commits

Author SHA1 Message Date
Miroslav Lichvar
9e5209d06d check PEERNTP variable before loading existing dhclient files
The /etc/dhcp/dhclient.d/chrony.sh script creates files with NTP servers
from DHCP only if the PEERNTP variable is not set to "no" (e.g. in
/etc/sysconfig/network). If the variable was set after the files were
already created, the chronyd service would still use the NTP servers
until the files were removed (e.g. after network restart).

Modify the chrony-helper script to check the variable before loading
any servers from dhclient files. Setting the variable and restarting
the chronyd service should now have an immediate effect.
2017-05-04 13:08:43 +02:00
Miroslav Lichvar
ef05b63a36 fix chrony-helper to escape names of systemd units (#1374767) 2016-09-13 10:37:16 +02:00
Miroslav Lichvar
14388922a6 fix chrony-helper to exit with correct status (#1350531) 2016-06-28 13:11:54 +02:00
Miroslav Lichvar
ee05e3dd36 extend chrony-helper to allow management of static sources (#1331655) 2016-05-16 12:35:39 +02:00
Miroslav Lichvar
7715352a8a extend chrony-helper to allow using servers from DNS SRV records (#1234406) 2015-06-22 16:50:09 +02:00
Miroslav Lichvar
73d97b1e27 avoid calling systemctl in helper script 2014-06-09 14:02:17 +02:00
Miroslav Lichvar
2762934d9d update to 1.28-pre1 2013-06-21 18:07:35 +02:00
Miroslav Lichvar
b35f73b75b suppress error messages from tr when generating key (#907914) 2013-03-12 18:04:08 +01:00
Miroslav Lichvar
adbad6f669 use systemctl is-active instead of status in chrony-helper (#794771) 2012-04-06 14:08:00 +02:00
Miroslav Lichvar
08a5f1a250 generate SHA1 command key instead of MD5 2012-02-28 13:57:59 +01:00
Miroslav Lichvar
2ca8fa6882 improve chrony-helper to keep track of servers added from DHCP (#787042) 2012-02-10 17:25:37 +01:00
Miroslav Lichvar
ff53331434 add forced-command to chrony-helper (#735821) 2011-09-06 15:50:07 +02:00
Miroslav Lichvar
87e9b122a8 on first start generate password with 16 chars 2011-09-06 15:45:43 +02:00
Miroslav Lichvar
259c5c431c drop SysV init script 2011-06-24 17:23:33 +02:00