Startup with no-ip

Olof Andersson olof.a at home.se
Thu Aug 26 13:20:42 PDT 2004


Hi!

I have problems getting noip to start automatically at startup. I'm a 
beginner at FreeBSD and Unix and I need help with this. I added some 
info from my system that I hope will be usefull. noip works fine when 
manually started.

FreeBSD anderssons.no-ip.com 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: 
Mon Feb 23 20:45:55 GMT 2004     
root at wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386

In /usr/local/etc/rc.d I have a file called noip.sh with the following 
content:

#!/bin/sh

case "$1" in
     start)
         if [ -x /usr/local/bin/noip2 -a -f /usr/local/etc/no-ip2.conf 
]; then
             echo -n ' noip';
             su -m noip -c '/usr/local/bin/noip2' 2> /dev/null > 
/dev/null
         fi
     ;;
     stop)
         echo -n ' noip';
         killall noip2
     ;;
     *)
         echo "Usage: `basename $0` {start|stop}" >&2
         exit 1
     ;;
esac
exit 0

My noip2 file is located in:

anderssons# ls -al /usr/local/bin/noip2
-rwx------  1 root  wheel  32716 Dec  5  2003 /usr/local/bin/noip2

And status is:

anderssons# /usr/local/bin/noip2 -S
No noip2 processes active.

Configuration data from /usr/local/etc/no-ip2.conf.
Account olof.a at home.se
configured for:
         host  anderssons.no-ip.com
Address check every 1 minute, directly connected via /dev/fxp0.

My no-ip2.conf is located in:

anderssons# ls -al /usr/local/etc/no-ip2.conf
-rw-------  1 root  wheel  132 Aug 25 20:09 /usr/local/etc/no-ip2.conf

Best regards and thanks in advance

/Olof Andersson



More information about the freebsd-questions mailing list