Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2007 11:25:35 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        sgmayo@mail.bloomfield.k12.mo.us
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Starting Scripts
Message-ID:  <467FEC7F.4020800@daleco.biz>
In-Reply-To: <467FDCC6.5090404@mail.bloomfield.k12.mo.us>
References:  <467FDCC6.5090404@mail.bloomfield.k12.mo.us>

next in thread | previous in thread | raw e-mail | index | archive | help
Scott Mayo wrote:

Hello from SW Missouri!

> I have set some things to automatically start in the rc.conf like ssh 
> and apache by doing 'sshd_enable="YES"' and 'apache22_enable="YES"'. How 
> do I start things like Zope and Cyrus?
> 
>  From the command line I can just:
> 
> '/usr/local/cyrus/bin master &' for cyrus
> 
> '/data/home/testuser/zope28/bin/zopectl start' for my instance of zope.

And, you could add these to your crontab ('crontab -e') or root's
with the special string "@reboot" pre-pended, and it would work.

But, that's not "by the book", just an illustration of how
the 'Nix philosophy "tools, not policy" still applies.

> I use to add lines like this to the rc.local file in linux to get them 
> started.  I was thinking that I read that this could still be done in 
> FreeBSD, but was not the preferred way to do it.
> 
>  From looking at the scripts in '/usr/local/etc/rc.d', it looks like 
> there are different ways.  For zope it says that I can define 
> 'zope28_enable : "YES"' in '/etc/rc.conf', '/etc/rc.conf.local' or 
> '/etc/rc.conf/zope28', so I guess that I just add 'zope28_enable : 
> "YES"' to my rc.conf?

I would expect that the format would be the same as the other
daemons, e.g.:

zope28_enable="YES"
 
Similar with whatever you decide to name the imapd script.

For a full discussion, see rc(8), rc.conf(5), rc.subr(8),
rcorder(8), etc.


> Thanks for any help.  I am just trying to get a good grasp on exactly 
> how things work here.  I thought I understood it from reading the 
> handbook, but then it seems a bit different when I get on the server.
> 
H.A.N.D.!
-- 
Q:	How many college football players does it take to screw in a lightbulb?
A:	Only one, but he gets three credits for it.



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