Olof Andersson <[EMAIL PROTECTED]> 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
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"