Date: Tue, 17 Dec 2002 18:29:22 -0500 From: "Bob Hall" <rjhalljr@starpower.net> To: Ronan Lucio <ronan@melim.com.br> Subject: Re: squid.sh problem Message-ID: <20021217232922.GA54445@sten.alder.net> In-Reply-To: <010f01c2a5c5$ad589800$34a8a8c0@melim.com.br> References: <20021217010954.GA49241@sten.alder.net> <010f01c2a5c5$ad589800$34a8a8c0@melim.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021217232922.GA54445>
