starting services?
Gerard Seibert
gerard at seibercom.net
Mon Nov 21 18:18:48 GMT 2005
On Monday, November 21, 2005 1:08:19 PM, Gerry Freymann <lists at interpool.ca>
Subject: Re: starting services?
Wrote these words of wisdom:
> On Mon, 21 Nov 2005 11:32:29 -0500
> "Michael P. Soulier" <msoulier at digitaltorque.ca> wrote:
>
> >On 11/17/05, Gerry Freymann <lists at interpool.ca> wrote:
> >> If you manually want to do this, you *must* use the full path to the
> >> script:
> >>
> >> /usr/local/etc/rc.d/samba.sh start | stop
> >
> >In the rc(8) manpage, it states that .sh scripts are sourced directly.
> >
> > 4. Call each script in turn using run_rc_script() (from
> > rc.subr(8)),
> > which sets $1 to ``start'', and sources the script in a
> > subshell. If the script has a .sh suffix then it is sourced
> > directly into the current shell.
> >
> >Why is that? I've found that running apache.sh directly with
> >start|stop doesn't work. I need to run apachectl.
>
> In order to manually call up apache.sh in the /usr/local/etc/rc.d
> directory, you have to use the full path to the script.
>
> If you:
>
> cd /usr/local/etc/rc.d
> ./apache.sh start
>
> it should complain and error out.
>
> but if you did:
>
> /usr/local/etc/rc.d/apache.sh start
>
> things should go as planned.
>
> That's, at least, if you wanna do it manually (to either stop or start a
> service that has a shell script in there).
>
> -gerry
***** REPLY SEPARATOR *****
On 10/11/2005 5:29:42 PM, Gerard Replied:
I have apache2 installed and have no problem with:
./apache2.sh start
Obviously, I have to run it as root.
--
Gerard Seibert
gerard at seibercom.net
"I'm not afraid of flying...I'm afraid of being at 35,000 feet and
suddenly *not* flying."
Koren
More information about the freebsd-questions
mailing list