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