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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to