Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Aug 2004 15:35:28 -0500
From:      Dan Rue <drue@therub.org>
To:        Olof Andersson <olof.a@home.se>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Startup with no-ip
Message-ID:  <20040826203528.GF84634@therub.org>
In-Reply-To: <65BA0DD3-F79D-11D8-A246-0003930BAE38@home.se>
References:  <65BA0DD3-F79D-11D8-A246-0003930BAE38@home.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 26, 2004 at 10:20:39PM +0200, Olof Andersson wrote:
> 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 > 
              ^^
Here's your problem.  This script gets run as root, so the su is
redundant and failing.


> /dev/null
>         fi
>     ;;
>     stop)
>         echo -n ' noip';
>         killall noip2
>     ;;
>     *)
>         echo "Usage: `basename $0` {start|stop}" >&2
>         exit 1
>     ;;
> esac
> exit 0
> 

[snip]

dan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040826203528.GF84634>