diff options
author | Christian Breunig <christian@breunig.cc> | 2023-01-15 07:59:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-15 07:59:05 +0100 |
commit | 0387c14c42dd4958d2296ce2e274f0d8a716f3ad (patch) | |
tree | d58d7bdd41881bb5b488f5b370c98375a17f9143 /data/templates/chrony/override.conf.j2 | |
parent | da015473559f88e604b27ba66a2f4a9f95425bb2 (diff) | |
parent | 0d35a866ba12e66e504e1f575a04429c5d8cb9be (diff) | |
download | vyos-1x-0387c14c42dd4958d2296ce2e274f0d8a716f3ad.tar.gz vyos-1x-0387c14c42dd4958d2296ce2e274f0d8a716f3ad.zip |
Merge pull request #1758 from c-po/t3008-chrony
ntp: T3008: migrate from ntpd to chrony
Diffstat (limited to 'data/templates/chrony/override.conf.j2')
-rw-r--r-- | data/templates/chrony/override.conf.j2 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/data/templates/chrony/override.conf.j2 b/data/templates/chrony/override.conf.j2 new file mode 100644 index 000000000..9eaea7608 --- /dev/null +++ b/data/templates/chrony/override.conf.j2 @@ -0,0 +1,17 @@ +{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %} +[Unit] +StartLimitIntervalSec=0 +ConditionPathExists={{ config_file }} +After=vyos-router.service + +[Service] +EnvironmentFile= +ExecStart= +ExecStart={{ vrf_command }}/usr/sbin/chronyd -F 1 -f {{ config_file }} +PIDFile= +PIDFile={{ config_file | replace('.conf', '.pid') }} +Restart=always +RestartSec=10 +# Required for VRF support +ProtectControlGroups=No + |