From owner-freebsd-questions Wed Jun 14 6:30:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from draenor.org (draenor.org [196.36.119.129]) by hub.freebsd.org (Postfix) with ESMTP id 4AE2937C1B4 for ; Wed, 14 Jun 2000 06:30:22 -0700 (PDT) (envelope-from marcs@draenor.org) Received: from marcs by draenor.org with local (Exim 3.14 #1) id 132DDx-0003JZ-00; Wed, 14 Jun 2000 15:28:53 +0200 Date: Wed, 14 Jun 2000 15:28:53 +0200 From: Marc Silver To: Drew Sanford Cc: questions@freebsd.org Subject: Re: rc startup question Message-ID: <20000614152853.O11164@draenor.org> References: <39478846.B31029F4@planetwe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <39478846.B31029F4@planetwe.com>; from drew@planetwe.com on Wed, Jun 14, 2000 at 08:27:34AM -0500 X-Operating-System: FreeBSD 4.0-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You would use /usr/local/etc/rc.d and simply create a startup script to start the service. For eg if you wanted to start apache, you would create apache.sh in /usr/local/etc/rc.d with the following: [ -x /usr/local/sbin/apachectl ] && /usr/local/sbin/apachectl start > /dev/null && echo -n ' apache' Cheers, Marc On Wed, Jun 14, 2000 at 08:27:34AM -0500, Drew Sanford wrote: > If I want to start something that isn't listed in rc.conf the way, say > named is, how would I go about doing that automagically at boot time? > With snmpd for example, would I add something like > > /usr/local/sbin/snmpd > > to rc.conf, or am I way off track? This probly seems like a really > stupid question but I'm at a loss coming from a linux backround where > rc.local would just have the above line added to it. Thanks for any > help. > > -- > Drew Sanford > Systems Administrator > Planetwe.com > Email: drew@planetwe.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message