Hi!
My problem is the following:
I use a chrooted Squid-2.5.STABLE3 over djb daemontools.
My run file:
#!/bin/bash
exec ./sbin/squid -d 1 -N -D -f ./etc/squid.conf 2>&1 | /usr/local/bin/
multilog t s10000000000 n20 ./log
If i do not use redirect program everything is fine.
When i set the directives to:
redirect_program /bin/redir.pl #because of chroot /usr/local/squid
redirect_children 2 # i think it is enough
nothing happens.
I tested it with lynx, and the dns lookup is ok. (lookin for xxxxxx and
then:
HTTP request sent; waiting for response (forever)
There is not any explanation in the logfiles. (no new lines)
The ps shows 4 sqid-processes (no redir.pl just squid)
My redir.pl:
#!/usr/bin/perl
$|=1;
while(<>){
print;
}
(rights squid.squid 755)
If i try to restart squid (svc -t /services/squid) it starts 4 new
processes. Any other of the services works fine with svc -t.
squid start log:
Starting Squid Cache version 2.5.STABLE3 for i686-pc-linux-gnu...
Process ID 27433
With 1024 file descriptors available
DNS Socket created at 0.0.0.0, port 1085, FD 4
Adding nameserver 192.168.47.131 from /etc/resolv.conf
helperOpenServers: Starting 2 'redir.pl' processes
Unlinkd pipe opened on FD 13
Swap maxSize 102400 KB, estimated 7876 objects
Target number of buckets: 393
Using 8192 Store buckets
Max Mem size: 8192 KB
Max Swap size: 102400 KB
Rebuilding storage in /var/cache (CLEAN)
Using Least Load store dir selection
Current Directory is /
Loaded Icons.
Accepting HTTP connections at 0.0.0.0, port 3128, FD 15.
Accepting ICP messages at 0.0.0.0, port 3130, FD 16.
WCCP Disabled.
Ready to serve requests.
Done reading /var/cache swaplog (319 entries)
Finished rebuilding storage from disk.
319 Entries scanned
0 Invalid entries.
0 With invalid flags.
319 Objects loaded.
0 Objects expired.
0 Objects cancelled.
0 Duplicate URLs purged.
0 Swapfile clashes avoided.
Took 0.5 seconds ( 700.6 objects/sec).
Beginning Validation Procedure
Completed Validation Procedure
Validated 319 Entries
store_swap_size = 4356k
storeLateRelease: released 0 objects
Can anybody help me?
Thx
Robert
Received on Wed Jul 23 2003 - 07:22:32 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:15 MST