Startup with no-ip
Lowell Gilbert
freebsd-questions-local at be-well.ilk.org
Thu Aug 26 14:04:24 PDT 2004
Olof Andersson <olof.a at home.se> writes:
> 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.
[snip[
> su -m noip -c '/usr/local/bin/noip2' 2> /dev/null > /dev/null
I suspect that you wanted:
su -m noip -c '/usr/local/bin/noip2' 2>&1 >/dev/null
but I suggest not running the updater as a daemon at all.
I have the dhcp client run it automatically when the address changes,
by creating /etc/dhclient-exit-hooks as follows:
#!/bin/sh
updater_prog = /usr/local/bin/noip2
if [ x$reason = xREBOOT ] || \
[ x$old_ip_address = x ] || \
[ x$old_ip_address != x$new_ip_address ]; then
if [ -x $updater_prog ]; then
${updater_prog} -i "$new_ip_address"
else
logger "dhclient-exit-hooks cannot find updater $updater_prog"
fi
fi
More information about the freebsd-questions
mailing list