Choose your Operating System and follow the installation instructions below.
- Download the DUC and save the file to: /usr/local/src
- Open a terminal and execute the following:
- cd /usr/local/src
- tar xzf noip-duc-linux.tar.gz
- cd no-ip-2.1.9
- make
- make install
- Create the configuration file: /usr/local/bin/noip2 -C
- You will be prompted to enter your username and password for No-IP, and for the hostnames you wish to update.
- Launch the DUC: /usr/local/bin/noip2
Create the file /etc/systemd/system/noip2.service
with the following content (and drop your init.d
scripts):
[Unit]
Description=noip2 service
[Service]
Type=forking
ExecStart=/usr/local/bin/noip2
Restart=always
[Install]
WantedBy=default.target
Then issue
sudo systemctl daemon-reload
to make systemd
aware of the new unit (systemd
caches unit files and this command makes systemd
reconsider its cache).
Now you can try to start and stop your unit and see its status:
sudo systemctl status noip2
sudo systemctl start noip2
sudo systemctl status noip2
sudo systemctl stop noip2
sudo systemctl status noip2
To have the unit started at boot time you need to enable it:
sudo systemctl enable noip2
No comments:
Post a Comment