From owner-freebsd-questions@FreeBSD.ORG Thu Aug 26 20:20:42 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 A092116A4CE for ; Thu, 26 Aug 2004 20:20:42 +0000 (GMT) Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id A831143D55 for ; Thu, 26 Aug 2004 20:20:41 +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 <20040826202040.IAWB345.mxfep02.bredband.com@[192.168.0.101]> for ; Thu, 26 Aug 2004 22:20:40 +0200 Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: <65BA0DD3-F79D-11D8-A246-0003930BAE38@home.se> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-questions@freebsd.org From: Olof Andersson Date: Thu, 26 Aug 2004 22:20:39 +0200 X-Mailer: Apple Mail (2.619) Subject: 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:20:42 -0000 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 > /dev/null fi ;; stop) echo -n ' noip'; killall noip2 ;; *) echo "Usage: `basename $0` {start|stop}" >&2 exit 1 ;; esac exit 0 My noip2 file is located in: anderssons# ls -al /usr/local/bin/noip2 -rwx------ 1 root wheel 32716 Dec 5 2003 /usr/local/bin/noip2 And status is: anderssons# /usr/local/bin/noip2 -S No noip2 processes active. Configuration data from /usr/local/etc/no-ip2.conf. Account olof.a@home.se configured for: host anderssons.no-ip.com Address check every 1 minute, directly connected via /dev/fxp0. My no-ip2.conf is located in: anderssons# ls -al /usr/local/etc/no-ip2.conf -rw------- 1 root wheel 132 Aug 25 20:09 /usr/local/etc/no-ip2.conf Best regards and thanks in advance /Olof Andersson