diff --git a/README.md b/README.md index 82b4456..c42afc5 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,13 @@ through sourceforge.net. Please check out http://ddclient.sf.net 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