top of page

Ubuntu No-IP DUC Startup Script

 

Copy and paste everything in between the '#' characters.

 

##########################################################################################
#! /bin/sh
case "$1" in
      start)
            echo "Starting noip2"
            /usr/local/bin/noip2
      ;;
      stop)
            echo –n "Shutting down noip2"
            for i in `noip2 –S 2>&1 \ grep process \ awk '{print $2}' \ tr –d ',' `
           do
                  noip2 –K $i
            done
      ;;
      *)
            echo "Usage: $0 {start\stop}"
            exit 1
esac
exit 0

##########################################################################################

bottom of page