Last active
February 6, 2023 15:06
-
-
Save arthurleon/ced7a0c68276fe24bd43 to your computer and use it in GitHub Desktop.
This script starts noip2 client at boot time on Ubuntu 14.04. Put it on /etc/init.d, change the attributes to be executable "sudo chmod 755 /etc/init.d/no-ip2" and change its owner to root "sudo chown root:root /etc/init.d/no-ip2"
This file contains 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
####################################################### | |
#! /bin/sh | |
case "$1" in | |
start) | |
echo "Starting noip2." | |
/usr/local/bin/noip2 | |
;; | |
stop) | |
echo "Shutting down noip2." | |
pkill noip2 | |
;; | |
*) | |
echo "Usage: $0 {start|stop}" | |
exit 1 | |
esac | |
exit 0 | |
####################################################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment