I have just installed No-IP on a brand new Ubuntu 12.04 install. The program starts fine when I start it from the CLI, but if I try to make this startup script work it won't start.
I got this script from their install instructions:
#! /bin/sh
# . /etc/rc.d/init.d/functions # uncomment/modify for your killproc
case "$1" in
start)
echo "Starting noip2."
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2."
killall -TERM /usr/local/bin/noip2
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
The CL is correct because if I run /usr/local/bin/noip2
it starts. But the script itself won't start it.
What do I have wrong in there? The script is executable:
-rwxrwxrwx 1 root root 299 Jan 12 13:28 noip*
EDIT
If I try the Init.d script it also works:
sudo /etc/init.d/noip start
It starts up just fine that way without a hitch.