From owner-freebsd-questions Tue Dec 17 15:32:45 2002 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 6DB4337B401 for ; Tue, 17 Dec 2002 15:32:44 -0800 (PST) Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id A494F43EC5 for ; Tue, 17 Dec 2002 15:32:43 -0800 (PST) (envelope-from rjhalljr@starpower.net) Received: from 66-44-58-19.s19.tnt3.lnhva.md.dialup.rcn.com ([66.44.58.19] helo=sten.alder.net) by smtp01.mrf.mail.rcn.net with smtp (Exim 3.35 #4) id 18ORCc-0003dg-00 for freebsd-questions@freebsd.org; Tue, 17 Dec 2002 18:32:42 -0500 Received: by sten.alder.net (sSMTP sendmail emulation); Tue, 17 Dec 2002 18:32:32 -0500 Date: Tue, 17 Dec 2002 18:29:22 -0500 From: "Bob Hall" To: Ronan Lucio Subject: Re: squid.sh problem Message-ID: <20021217232922.GA54445@sten.alder.net> References: <20021217010954.GA49241@sten.alder.net> <010f01c2a5c5$ad589800$34a8a8c0@melim.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <010f01c2a5c5$ad589800$34a8a8c0@melim.com.br> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Dec 17, 2002 at 10:13:15AM -0200, Ronan Lucio wrote: > Bob, > > It seems you added the -D option in the wrong place. > > The bellow squid.sh works for me in a charm: > > ------------------------------ > #!/bin/sh > > if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then > echo "$0: Cannot determine the PREFIX" >&2 > exit 1 > fi > > case "$1" in > start) > if [ -x ${PREFIX}/sbin/squid -a -f ${PREFIX}/etc/squid/squid.conf ]; > then > (cd /${PREFIX}/squid/logs; ${PREFIX}/sbin/squid -D Thanks. It works now. But why did it work the other way in the past, and then suddenly stop working? > > This bash script has run in the past with > > the -D option without any problems. This problem started a few > > days ago. Bob Hall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message