From owner-freebsd-questions@FreeBSD.ORG Mon Nov 21 18:18:48 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69EE816A420 for ; Mon, 21 Nov 2005 18:18:48 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: from smtp3.suscom.net (smtp3.suscom.net [64.78.119.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id A40F143D73 for ; Mon, 21 Nov 2005 18:18:41 +0000 (GMT) (envelope-from gerard@seibercom.net) Received: from localhost (unknown [127.0.0.1]) by smtp3.suscom.net (Postfix) with ESMTP id 81438210186 for ; Mon, 21 Nov 2005 13:18:37 -0500 (EST) Received: from smtp3.suscom.net ([127.0.0.1]) by localhost (smtp3.suscom.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30318-01-41 for ; Mon, 21 Nov 2005 13:18:30 -0500 (EST) Received: from seibercom.net (ip148.217.susc.suscom.net [216.45.217.148]) by smtp3.suscom.net (Postfix) with SMTP id 7C49321017F for ; Mon, 21 Nov 2005 13:18:30 -0500 (EST) Received: from [192.168.0.2] (//gerard [192.168.0.2]) by seibercom.net (8.13.4/8.13.4) with ESMTP id jALIIV2v010848 for ; Mon, 21 Nov 2005 13:18:31 -0500 (EST) (envelope-from gerard@seibercom.net) Date: Mon, 21 Nov 2005 13:18:31 -0500 From: Gerard Seibert To: freebsd-questions@freebsd.org Sender: gerard@seibercom.net Organization: Seibercom.net In-Reply-To: <20051121130819.0be55b9a.lists@interpool.ca> References: <20051121130819.0be55b9a.lists@interpool.ca> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20051121131550.1A4E.GERARD@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Becky! ver. 2.22.02 [en] X-Virus-Scanned: amavisd-new at suscom.net Subject: Re: starting services? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2005 18:18:48 -0000 On Monday, November 21, 2005 1:08:19 PM, Gerry Freymann Subject: Re: starting services? Wrote these words of wisdom: > On Mon, 21 Nov 2005 11:32:29 -0500 > "Michael P. Soulier" wrote: >=20 > >On 11/17/05, Gerry Freymann 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. >=20 > 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. >=20 > If you: >=20 > cd /usr/local/etc/rc.d > ./apache.sh start >=20 > it should complain and error out.=20 >=20 > but if you did: >=20 > /usr/local/etc/rc.d/apache.sh start >=20 > things should go as planned. >=20 > That's, at least, if you wanna do it manually (to either stop or start a > service that has a shell script in there). >=20 > -gerry ***** REPLY SEPARATOR ***** On 10/11/2005 5:29:42 PM, Gerard Replied: I have apache2 installed and have no problem with: =2E/apache2.sh start Obviously, I have to run it as root. --=20 Gerard Seibert gerard@seibercom.net "I'm not afraid of flying...I'm afraid of being at 35,000 feet and suddenly *not* flying." Koren