Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2005 11:32:29 -0500
From:      "Michael P. Soulier" <msoulier@digitaltorque.ca>
To:        Gerry Freymann <lists@interpool.ca>
Cc:        lonnie@outstep.com, freebsd-questions@freebsd.org
Subject:   Re: starting services?
Message-ID:  <fb6605670511210832r1cfb2dadpadb647fb99c39370@mail.gmail.com>
In-Reply-To: <20051117091909.00812699.lists@interpool.ca>
References:  <000001c5eb7d$240a47a0$d1c88a45@picklepie> <20051117091909.00812699.lists@interpool.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/17/05, Gerry Freymann <lists@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 t=
he
          current shell.

Why is that? I've found that running apache.sh directly with
start|stop doesn't work. I need to run apachectl.

Mike
--
Michael P. Soulier <msoulier@digitaltorque.ca>



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