From owner-freebsd-questions@FreeBSD.ORG Fri Aug 27 20:52:56 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 8671116A4CE for ; Fri, 27 Aug 2004 20:52:56 +0000 (GMT) Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 616BB43D46 for ; Fri, 27 Aug 2004 20:52:55 +0000 (GMT) (envelope-from olof.a@home.se) Received: from [192.168.0.101] ([213.113.78.225] [213.113.78.225]) by mxfep02.bredband.com with ESMTP id <20040827205254.RTNC345.mxfep02.bredband.com@[192.168.0.101]>; Fri, 27 Aug 2004 22:52:54 +0200 In-Reply-To: <441xht1ui1.fsf@be-well.ilk.org> References: <65BA0DD3-F79D-11D8-A246-0003930BAE38@home.se> <441xht1ui1.fsf@be-well.ilk.org> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <10910722-F86B-11D8-A246-0003930BAE38@home.se> Content-Transfer-Encoding: 7bit From: Olof Andersson Date: Fri, 27 Aug 2004 22:52:53 +0200 To: Lowell Gilbert X-Mailer: Apple Mail (2.619) 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: Fri, 27 Aug 2004 20:52:56 -0000 Good suggestion. I have created the file /etc/dhclient-exit-hooks but do I need to do something else to get the noip to run when the ip-address changes? I'm a beginner so i could really need some help with the details. Thanks in advance /Olof Andersson > > > 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