summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-13 18:04:20 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-13 18:04:35 +0200
commit6185439442e8982febf6b8037a89fc2d7e6fa677 (patch)
tree8f89ff7b6d6a597077b7886a1e91c97423e89593 /src/systemd
parent1e6dc1a45dd113dc49d24738d0b324bb67a8d11f (diff)
downloadvyos-1x-6185439442e8982febf6b8037a89fc2d7e6fa677.tar.gz
vyos-1x-6185439442e8982febf6b8037a89fc2d7e6fa677.zip
ddclient: T2185: migrate from SysVinit to systemd
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/ddclient.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/systemd/ddclient.service b/src/systemd/ddclient.service
new file mode 100644
index 000000000..a4d55827a
--- /dev/null
+++ b/src/systemd/ddclient.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Dynamic DNS Update Client
+RequiresMountsFor=/run
+ConditionPathExists=/run/ddclient/ddclient.conf
+After=vyos-router.service
+
+[Service]
+WorkingDirectory=/run/ddclient
+Type=forking
+PIDFile=/run/ddclient/ddclient.pid
+ExecStart=/usr/sbin/ddclient -cache /run/ddclient/ddclient.cache -pid /run/ddclient/ddclient.pid -file /run/ddclient/ddclient.conf
+
+[Install]
+WantedBy=multi-user.target