From 3feaf02ebbd48878bd89c307cdc49ad118b4ed0a Mon Sep 17 00:00:00 2001 From: Bumsik Kim Date: Wed, 20 Mar 2019 12:29:47 +0000 Subject: [PATCH] Add systemd sample and instruction --- README.md | 7 +++++++ sample-etc_systemd.service | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 sample-etc_systemd.service diff --git a/README.md b/README.md index 055b3c3..e522256 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,13 @@ INSTALLATION: vi /etc/ddclient/ddclient.conf -- and change hostnames, logins, and passwords appropriately + ## For those using systemd: + cp sample-etc_systemd.service /etc/systemd/system/ddclient.service + ## enable automatic startup when booting + systemctl enable ddclient.service + ## start the first time by hand + systemctl start ddclient.service + ## For those using Redhat style rc files and using daemon-mode: cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient ## enable automatic startup when booting diff --git a/sample-etc_systemd.service b/sample-etc_systemd.service new file mode 100644 index 0000000..c6418a4 --- /dev/null +++ b/sample-etc_systemd.service @@ -0,0 +1,11 @@ +[Unit] +Description=Dynamic DNS Update Client +After=network.target + +[Service] +Type=forking +PIDFile=/var/run/ddclient.pid +ExecStart=/usr/sbin/ddclient + +[Install] +WantedBy=multi-user.target