From owner-freebsd-questions@FreeBSD.ORG Mon Nov 21 16:32:32 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 E495616A41F for ; Mon, 21 Nov 2005 16:32:32 +0000 (GMT) (envelope-from msoulier@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F6D143D58 for ; Mon, 21 Nov 2005 16:32:30 +0000 (GMT) (envelope-from msoulier@gmail.com) Received: by nproxy.gmail.com with SMTP id p48so120322nfa for ; Mon, 21 Nov 2005 08:32:29 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rSBHKa7megZwV/vx1DUtQCTtITt2ig8vq/ZX+wYo2HCuNXm0zHnyAXFyXbjGzha4ilcYCWRASDjoyU711cdusLEjP0EiaBVZBnltjEGMPyP/C6n67YlJJi5Wt4hwBSsjQs91V0ZmlGc3nxBuyg1yqL8Z67MtBpXAi8Haxyf3pLo= Received: by 10.48.43.8 with SMTP id q8mr350287nfq; Mon, 21 Nov 2005 08:32:29 -0800 (PST) Received: by 10.48.225.11 with HTTP; Mon, 21 Nov 2005 08:32:29 -0800 (PST) Message-ID: Date: Mon, 21 Nov 2005 11:32:29 -0500 From: "Michael P. Soulier" Sender: msoulier@gmail.com To: Gerry Freymann In-Reply-To: <20051117091909.00812699.lists@interpool.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <000001c5eb7d$240a47a0$d1c88a45@picklepie> <20051117091909.00812699.lists@interpool.ca> Cc: lonnie@outstep.com, freebsd-questions@freebsd.org Subject: Re: starting services? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2005 16:32:33 -0000 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 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