From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 20:42:47 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0926516A4D6 for ; Thu, 26 Aug 2004 20:42:47 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ED5443D67 for ; Thu, 26 Aug 2004 20:42:44 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by internet.potentialtech.com (Postfix) with ESMTP id 88D2869A8D; Thu, 26 Aug 2004 16:42:43 -0400 (EDT) Date: Thu, 26 Aug 2004 16:42:42 -0400 From: Bill Moran To: Dan Rue Message-Id: <20040826164242.42b027a1.wmoran@potentialtech.com> In-Reply-To: <20040826203528.GF84634@therub.org> References: <65BA0DD3-F79D-11D8-A246-0003930BAE38@home.se> <20040826203528.GF84634@therub.org> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org cc: olof.a@home.se Subject: Re: Startup with no-ip X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 20:42:47 -0000 Dan Rue 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 > > 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. 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