Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jun 2000 15:28:53 +0200
From:      Marc Silver <marcs@draenor.org>
To:        Drew Sanford <drew@planetwe.com>
Cc:        questions@freebsd.org
Subject:   Re: rc startup question
Message-ID:  <20000614152853.O11164@draenor.org>
In-Reply-To: <39478846.B31029F4@planetwe.com>; from drew@planetwe.com on Wed, Jun 14, 2000 at 08:27:34AM -0500
References:  <39478846.B31029F4@planetwe.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000614152853.O11164>