Hello all,
This may seem like a stupid question but im at a bit of a loss.
I am using Redhat linux 4.1 with kernal 2.0.29 and ive setup Squid 1.1.19
which works excellently all together, but i cant get squid to load on boot
time.
This is whats output to the /var/log/squid/cache.log:
97/04/27 00:20:51| Starting Squid Cache version 1.1.9 for i486-pc-linux-gnu...
97/04/27 00:20:51| With 256 file descriptors available
97/04/27 00:20:51| Performing DNS Tests...
97/04/27 00:20:51| Successful DNS name lookup tests...
97/04/27 00:20:51| Started 1 'dnsserver' processes
97/04/27 00:20:51| Unlinkd pipe opened on FD 8
97/04/27 00:20:51| file_map_create: creating space for 2097152 files
97/04/27 00:20:51| Swap maxSize 153600, estimated 7680 objects
97/04/27 00:20:51| Target number of buckets: 153
97/04/27 00:20:51| Using 7951 Store buckets, maintain 1 bucket every 10
seconds
97/04/27 00:20:51| Rebuilding storage from disk image in /var/cache
97/04/27 00:21:47| file_open: error opening file
/var/log/squid/swap.log.new: (1
3) Permission denied
97/04/27 00:21:47| storeStartRebuildFromDisk: /var/log/squid/swap.log.new:
(13)
Permission denied
FATAL: storeStartRebuildFromDisk: Can't open tmp swaplog
Squid Cache (Version 1.1.9): Terminated abnormally.
if i try and load squid in the /etc/rc.d/rc.local with:
# starting Squid proxy/cache
if [ -f /usr/local/squid/bin/squid ]
then
echo "Starting Squid proxy_cache"
/usr/local/squid/bin/squid &
fi
I dont know why, squid is in its normal location of /usr/local/squid/bin/
and works brilliant once the system is booted up and i execute squid with
'squid &' eg from the cache.log:
97/04/27 00:23:42| Starting Squid Cache version 1.1.9 for i486-pc-linux-gnu...
97/04/27 00:23:42| With 256 file descriptors available
97/04/27 00:23:42| Performing DNS Tests...
97/04/27 00:23:42| Successful DNS name lookup tests...
97/04/27 00:23:42| Started 1 'dnsserver' processes
97/04/27 00:23:42| Unlinkd pipe opened on FD 8
97/04/27 00:23:42| file_map_create: creating space for 2097152 files
97/04/27 00:23:42| Swap maxSize 153600, estimated 7680 objects
97/04/27 00:23:42| Target number of buckets: 153
97/04/27 00:23:42| Using 7951 Store buckets, maintain 1 bucket every 10
seconds
97/04/27 00:23:42| Rebuilding storage from disk image in /var/cache
97/04/27 00:23:43| Accepting HTTP connections on FD 12.
97/04/27 00:23:43| Accepting ICP connections on FD 13.
97/04/27 00:23:43| Ready to serve requests.
97/04/27 00:23:44| Configuring Parent proxy1.netspace.net.au/8080/3130
97/04/27 00:23:44| Configuring Parent proxy2.netspace.net.au/8080/3130
97/04/27 00:24:17| Finished rebuilding storage from disk image.
97/04/27 00:24:17| 1402 Lines read from previous logfile.
97/04/27 00:24:17| 1268 Objects loaded.
97/04/27 00:24:17| 0 Objects expired.
97/04/27 00:24:17| 11 Duplicate URLs purged.
97/04/27 00:24:17| 123 Swapfile clashes avoided.
97/04/27 00:24:17| Took 34 seconds ( 37.3 objects/sec).
97/04/27 00:24:17| store_swap_size = 15399k
Can someone please explain to me whats going on? Everything else loads
from the rc.local with no problems except squid. Ive even tried setting it
suid root with no luck. Ive also tried to make it look for the squid.conf
file from the command line in the rc.local and that doesnt work either.
Thanks
Catch ya,
Woody <woody@netspace.net.au>
-- Terry J. Wood, Located at Traralgon, Gippsland Country Victoria, AustraliaReceived on Sat Apr 26 1997 - 08:57:41 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:02 MST