From owner-freebsd-questions@FreeBSD.ORG Sun Jan 4 12:14:33 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 ADC8F16A4CE for ; Sun, 4 Jan 2004 12:14:33 -0800 (PST) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BD5843D6D for ; Sun, 4 Jan 2004 12:14:20 -0800 (PST) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.24; FreeBSD) id 1AdEdd-000PNd-Io; Sun, 04 Jan 2004 20:14:17 +0000 Date: Sun, 4 Jan 2004 20:14:17 +0000 From: Jez Hancock To: Micke P Message-ID: <20040104201417.GB96817@users.munk.nu> Mail-Followup-To: Micke P , freebsd-questions@freebsd.org References: <20040104192156.86503.qmail@web14525.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040104192156.86503.qmail@web14525.mail.yahoo.com> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: starting daemons at server start 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: Sun, 04 Jan 2004 20:14:33 -0000 On Sun, Jan 04, 2004 at 11:21:56AM -0800, Micke P wrote: > > Right! Ok, it's definitely not inetd that I need. I'm > thinking primarily of starting apache and a dynamic ip > updater automatically at startup. Have a look for one of the dyndns update applications in the ports tree (look in /usr/ports/dns/ especially - from experience ddclient worked well for me:P). After you install install the one you want, the port installation should place a script in /usr/local/etc/rc.d that will start the application when the machine boots. Note however that for scripts in /usr/local/etc/rc.d to run at boot time, they must: - be executable (ie have the executable bit set - use chmod to do this) - end in .sh (a lot of the time port installations will install scripts into /usr/local/etc/rc.d with the extension .sh.sample - you need to rename it to end in .sh before it will run on boot) For more info on all of the above read up on the section on ports in the freebsd handbook and the man pages for rc, ports, mv and chmod. Good luck :P -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - personal weblog http://ipfwstats.sf.net/ - ipfw peruser traffic logging