summaryrefslogtreecommitdiff
path: root/data/templates/ntp/override.conf.tmpl
blob: dbfdc45452d6c5de6d467eecd8c48a61089ee640 (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