From f2e8531996042c0b2f81acffebe50ebf0a32c3f8 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Sat, 4 Jan 2025 13:17:51 -0600 Subject: ddclient: T5791: Keep ddclient.service in foreground Since the distributed ddclient.service is of type 'exec' now, avoid using process forking and let systemd manage the process directly. --- data/templates/dns-dynamic/override.conf.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'data/templates/dns-dynamic/override.conf.j2') diff --git a/data/templates/dns-dynamic/override.conf.j2 b/data/templates/dns-dynamic/override.conf.j2 index 4a6851cef..c0edd8f05 100644 --- a/data/templates/dns-dynamic/override.conf.j2 +++ b/data/templates/dns-dynamic/override.conf.j2 @@ -1,10 +1,11 @@ {% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %} [Unit] ConditionPathExists={{ config_file }} +Wants= After=vyos-router.service [Service] -PIDFile={{ config_file | replace('.conf', '.pid') }} EnvironmentFile= ExecStart= -ExecStart={{ vrf_command }}/usr/bin/ddclient -file {{ config_file }} +ExecStart={{ vrf_command }}/usr/bin/ddclient --file {{ config_file }} --foreground +Restart=always -- cgit v1.2.3