-
-
Save alanbchristie/c710b925a689927dac0aec928077891f to your computer and use it in GitHub Desktop.
Systemd Service file for no-ip.com dynamic ip updater
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Simple No-ip.com Dynamic DNS Updater | |
# | |
# By Nathan Giesbrecht (http://nathangiesbrecht.com) | |
# | |
# 1) Install binary as described in no-ip.com's source file (assuming results in /usr/local/bin) | |
# https://www.noip.com/support/knowledgebase/install-ip-duc-onto-raspberry-pi/ | |
# | |
# mkdir /home/pi/noip | |
# cd /home/pi/noip | |
# wget https://www.noip.com/client/linux/noip-duc-linux.tar.gz | |
# tar vzxf noip-duc-linux.tar.gz | |
# cd noip-2.1.9-1 | |
# sudo make | |
# sudo make install | |
# | |
# The install will enter an interactive session | |
# askign questions about your noip account. | |
# | |
# - Select the approriate network device (usually eth0) | |
# - Enter your no-ip email and password | |
# - After logging-in I set the interval to 30 (default) | |
# - And do not want to run anything at successful update | |
# | |
# At the end of the session you should find a new file '/usr/local/etc/no-ip2.conf' | |
# | |
# 2) Copy the content of this Gist (the noip2.service file) | |
# to /etc/systemd/system/ on the Raspberry Pi | |
# 3) Execute `sudo systemctl daemon-reload` | |
# 4) Execute `sudo systemctl enable noip2` | |
# 5) Execute `sudo systemctl start noip2` | |
# 6) Check the service status with `systemctl status noip2` | |
# | |
# systemd supports lots of fancy features, look here (and linked docs) for a full list: | |
# http://www.freedesktop.org/software/systemd/man/systemd.exec.html | |
[Unit] | |
Description=No-ip.com dynamic IP address updater | |
After=network.target | |
After=syslog.target | |
[Install] | |
WantedBy=multi-user.target | |
Alias=noip.service | |
[Service] | |
# Start main service | |
ExecStart=/usr/local/bin/noip2 | |
Restart=always | |
Type=forking |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment