Skip to content

Instantly share code, notes, and snippets.

@arthurleon
Last active February 6, 2023 15:06
Show Gist options
  • Save arthurleon/ced7a0c68276fe24bd43 to your computer and use it in GitHub Desktop.
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"
#######################################################
#! /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