Merge pull request #66 from kbumsik/master
Add systemd sample and instruction
This commit is contained in:
commit
b41c0d0a16
2 changed files with 18 additions and 0 deletions
|
@ -62,6 +62,13 @@ through sourceforge.net. Please check out http://ddclient.sf.net
|
||||||
vi /etc/ddclient/ddclient.conf
|
vi /etc/ddclient/ddclient.conf
|
||||||
-- and change hostnames, logins, and passwords appropriately
|
-- 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:
|
## 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
|
cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
|
||||||
## enable automatic startup when booting
|
## enable automatic startup when booting
|
||||||
|
|
11
sample-etc_systemd.service
Normal file
11
sample-etc_systemd.service
Normal file
|
@ -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
|
Loading…
Reference in a new issue