summaryrefslogtreecommitdiff
path: root/data/templates/ntp/override.conf.j2
blob: 6fed9d7d2fabe7c17fbaf036204a28678ad67608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
[Unit]
StartLimitIntervalSec=0
ConditionPathExists={{ config_file }}
After=vyos-router.service

[Service]
ExecStart=
ExecStart={{ vrf_command }}/usr/sbin/ntpd -g -p {{ config_file | replace('.conf', '.pid') }} -c {{ config_file }} -u ntp:ntp
PIDFile=
PIDFile={{ config_file | replace('.conf', '.pid') }}
Restart=always
RestartSec=10