blob: aaed4ff35266e7f2dc4c81156f0b4ce961c94698 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
{% set cache_file = config_file.replace('.conf', '.cache') %}
[Unit]
ConditionPathExists={{ config_file }}
Wants=
After=vyos-router.service
[Service]
EnvironmentFile=
ExecStart=
ExecStart={{ vrf_command }}/usr/bin/ddclient --file {{ config_file }} --cache {{ cache_file }} --foreground --daemon {{ interval }}
Restart=always
|