Starting Scripts
Norberto Meijome
freebsd at meijome.net
Tue Jun 26 04:56:50 UTC 2007
On Mon, 25 Jun 2007 10:18:30 -0500
Scott Mayo <sgmayo at mail.bloomfield.k12.mo.us> wrote:
> 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?
[...]
hi !
I think your questions have been answered. I just wanted to add that, in case
it wasnt obvious from the documentation, you can start those services without
having to restart your machine (it isn't MSWindows after all).
Simply run
/usr/local/etc/rc.d/[yourscript].sh start
Now, if you haven't got "yourscript_enable='YES' " in /etc/rc.conf , the above
line wont work (the script will try to start, parse rc.conf, realise the
service is disabled and bail out silently).
To bypass this, simply change 'start' with 'forcestart' and it'll start
regardless of what rc.conf says.
btw, /etc/ contains scripts and configurations from the FreeBSD system itself
(and software that is part of the FreeBSD OS). /usr/local/etc/ contains the
same thing for applications / services you installed (from packages and/or
ports). They hardly ever overlap.
B
_________________________
{Beto|Norberto|Numard} Meijome
"He loves nature in spite of what it did to him."
Forrest Tucker
I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
More information about the freebsd-questions
mailing list