Skip to content

Instantly share code, notes, and snippets.

@Plotnus
Forked from NathanGiesbrecht/noip2.service
Last active June 7, 2019 07:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Plotnus/76503a297ad70f88be9a19c203c084cc to your computer and use it in GitHub Desktop.
Save Plotnus/76503a297ad70f88be9a19c203c084cc to your computer and use it in GitHub Desktop.
Systemd Service file for no-ip.com dynamic ip updater
# 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)
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file
# 3) Copy this file noip2.service to /etc/systemd/system/
# 4) Execute `sudo systemctl enable noip2`
# 5) Execute `sudo systemctl start 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 Update Client
After=network.target
After=syslog.target
[Service]
ExecStart=/usr/local/bin/noip2
Restart=always
Type=forking
PIDFile=/run/noip2.pid
[Install]
WantedBy=multi-user.target
@Plotnus
Copy link
Author

Plotnus commented Jun 7, 2019

adding PIDFile per man pages reccomendation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment