summaryrefslogtreecommitdiff
path: root/data/templates/dns-dynamic/override.conf.j2
diff options
context:
space:
mode:
authorIndrajit Raychaudhuri <irc@indrajit.com>2025-01-06 10:46:35 -0600
committerIndrajit Raychaudhuri <irc@indrajit.com>2025-01-09 10:17:27 -0600
commita328575dc4ab7d9597eb0e031470dba9cbf5eefc (patch)
tree6fc3b59eb45e8cca96758623aaabf537e78ee0b8 /data/templates/dns-dynamic/override.conf.j2
parent53cb3e5cb9b0c88a5c83753bfadb5087b4aeb2b1 (diff)
downloadvyos-1x-a328575dc4ab7d9597eb0e031470dba9cbf5eefc.tar.gz
vyos-1x-a328575dc4ab7d9597eb0e031470dba9cbf5eefc.zip
ddclient: T5791: Relocate process params to ExecStart
Pull up all the global parameters controlling process behavior to systemd service. Also remove `syslog=yes`` as it is not needed with `exec` type service.
Diffstat (limited to 'data/templates/dns-dynamic/override.conf.j2')
-rw-r--r--data/templates/dns-dynamic/override.conf.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/data/templates/dns-dynamic/override.conf.j2 b/data/templates/dns-dynamic/override.conf.j2
index c0edd8f05..aaed4ff35 100644
--- a/data/templates/dns-dynamic/override.conf.j2
+++ b/data/templates/dns-dynamic/override.conf.j2
@@ -1,4 +1,5 @@
{% 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=
@@ -7,5 +8,5 @@ After=vyos-router.service
[Service]
EnvironmentFile=
ExecStart=
-ExecStart={{ vrf_command }}/usr/bin/ddclient --file {{ config_file }} --foreground
+ExecStart={{ vrf_command }}/usr/bin/ddclient --file {{ config_file }} --cache {{ cache_file }} --foreground --daemon {{ interval }}
Restart=always