From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 21:04:24 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 5E8DE16A4CE for ; Thu, 26 Aug 2004 21:04:24 +0000 (GMT) Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21BD643D1F for ; Thu, 26 Aug 2004 21:04:24 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 22439 invoked from network); 26 Aug 2004 21:04:23 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.no-ip.com) ([66.92.78.145]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 26 Aug 2004 21:04:23 -0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id 278967D; Thu, 26 Aug 2004 17:04:23 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Olof Andersson References: <65BA0DD3-F79D-11D8-A246-0003930BAE38@home.se> From: Lowell Gilbert Date: 26 Aug 2004 17:04:22 -0400 In-Reply-To: <65BA0DD3-F79D-11D8-A246-0003930BAE38@home.se> Message-ID: <441xht1ui1.fsf@be-well.ilk.org> Lines: 33 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org 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 21:04:24 -0000 Olof Andersson 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