[squid-users] storeurl_rewrite_program not exiting on squid -k rotate

From: Charlie Killian <charlie_at_castfire.com>
Date: Fri, 27 Mar 2009 08:52:02 -0700

I've read the few posts and docs about storeurl_rewrite_program but I still
can't get the storeurl_rewrite_program to exit on "squid -k rotate".

I'm appealing for help to solve this. Below are my configuration options and
the perl script that exits on eof(). What am I doing wrong?

storeurl_access allow all
storeurl_rewrite_program /usr/local/squid/bin/strip_query

# cat /usr/local/squid/bin/strip_query
#!/usr/local/bin/perl

$| = 1;
while (<>)
{
        chomp;
        $_ =~ s/\?.*//g;
        print $_ . "\n";
        exit 0 if eof();
}

#

And the perms on strip_query script:
# ls -la strip_query
-rwxr-xr-x 1 root root 109 Mar 26 13:13 strip_query

I'm running: 2.7.STABLE2 on RHEL5.2 64bit

Any ideas?

Thanks,
Charlie
Received on Fri Mar 27 2009 - 15:52:11 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 27 2009 - 12:00:02 MDT