Skip to content

Commit

Permalink
ddclient: T5791: Keep ddclient.service in foreground
Browse files Browse the repository at this point in the history
Since the distributed ddclient.service is of type 'exec' now, avoid using
process forking and let systemd manage the process directly.
  • Loading branch information
indrajitr authored and c-po committed Jan 6, 2025
1 parent 9dae22e commit f2e8531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion data/templates/dns-dynamic/ddclient.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ if{{ ipv }}={{ address }}, \
daemon={{ interval }}
syslog=yes
ssl=yes
pid={{ config_file | replace('.conf', '.pid') }}
cache={{ config_file | replace('.conf', '.cache') }}
{# ddclient default (web=dyndns) doesn't support ssl and results in process lockup #}
web=googledomains
Expand Down
5 changes: 3 additions & 2 deletions data/templates/dns-dynamic/override.conf.j2
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f2e8531

Please sign in to comment.