Dan Rue <[EMAIL PROTECTED]> wrote: > 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 > > [EMAIL PROTECTED]:/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.
No. He wants to su to the user "noip" to run the command, which is actually a good idea. I would guess what's causing problems is this: "2>" I would guess that the "2" doesn't belong? -- Bill Moran Potential Technologies http://www.potentialtech.com _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"