Date: Thu, 26 Aug 2004 22:20:39 +0200 From: Olof Andersson <olof.a@home.se> To: freebsd-questions@freebsd.org Subject: Startup with no-ip Message-ID: <65BA0DD3-F79D-11D8-A246-0003930BAE38@home.se>
index | next in thread | raw e-mail
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@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@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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?65BA0DD3-F79D-11D8-A246-0003930BAE38>
