File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
data/templates/dns-dynamic Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ if{{ ipv }}={{ address }}, \
24
24
daemon={{ interval }}
25
25
syslog=yes
26
26
ssl=yes
27
- pid={{ config_file | replace('.conf', '.pid') }}
28
27
cache={{ config_file | replace('.conf', '.cache') }}
29
28
{# ddclient default (web=dyndns) doesn't support ssl and results in process lockup #}
30
29
web=googledomains
Original file line number Diff line number Diff line change 1
1
{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
2
2
[Unit]
3
3
ConditionPathExists={{ config_file }}
4
+ Wants=
4
5
After=vyos-router.service
5
6
6
7
[Service]
7
- PIDFile={{ config_file | replace('.conf', '.pid') }}
8
8
EnvironmentFile=
9
9
ExecStart=
10
- ExecStart={{ vrf_command }}/usr/bin/ddclient -file {{ config_file }}
10
+ ExecStart={{ vrf_command }}/usr/bin/ddclient --file {{ config_file }} --foreground
11
+ Restart=always
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python3
2
2
#
3
- # Copyright (C) 2019-2024 VyOS maintainers and contributors
3
+ # Copyright (C) 2019-2025 VyOS maintainers and contributors
4
4
#
5
5
# This program is free software; you can redistribute it and/or modify
6
6
# it under the terms of the GNU General Public License version 2 or later as
38
38
interface = 'eth0'
39
39
40
40
class TestServiceDDNS (VyOSUnitTestSHIM .TestCase ):
41
- def setUp (self ):
42
- # Always start with a clean CLI instance
43
- self .cli_delete (base_path )
41
+ @classmethod
42
+ def setUpClass (cls ):
43
+ super (TestServiceDDNS , cls ).setUpClass ()
44
+
45
+ # ensure we can also run this test on a live system - so lets clean
46
+ # out the current configuration :)
47
+ cls .cli_delete (cls , base_path )
44
48
45
49
def tearDown (self ):
46
50
# Check for running process
@@ -336,8 +340,8 @@ def test_08_dyndns_vrf(self):
336
340
337
341
# Check for process in VRF
338
342
systemd_override = cmd (f'cat { DDCLIENT_SYSTEMD_UNIT } ' )
339
- self .assertIn (f'ExecStart=ip vrf exec { vrf_name } /usr/bin/ddclient -file { DDCLIENT_CONF } ' ,
340
- systemd_override )
343
+ self .assertIn (f'ExecStart=ip vrf exec { vrf_name } /usr/bin/ddclient ' \
344
+ f'--file { DDCLIENT_CONF } --foreground' , systemd_override )
341
345
342
346
# Check for process in VRF
343
347
proc = cmd (f'ip vrf pids { vrf_name } ' )
You can’t perform that action at this time.
0 commit comments