[squid-users] Startup/shutdown script which was working perfactly alright for squid 3.0stable25 is not working for squid 2.7 stable9.0

From: GIGO . <gigoz_at_msn.com>
Date: Sat, 22 May 2010 18:55:03 +0000

Hi all,
 
I am able to run squid manually however whenever i try to run it through the startup/shutdown script it fails. This is the same script working for squid 3.0 stable 25 however i am not being able to figure out that why its failing on squid 2.7 stable 9? Neither of the instance starts with system startup.
 
 
Please guide me i be thankful. My startup script and tail of cache.log for both instances is below.
 
 
#!/bin/sh
#
#my script
case "$1" in
start)
/usr/sbin/squid -D -s -f /etc/squid/squidcache.conf
/usr/sbin/squid -D -s -f /etc/squid/squid.conf
#The below line is to automatically start apache with system startup
/usr/sbin/httpd -k start
#KRB5_KTNAME=/etc/squid/HTTP.keytab
#export KRB5_KTNAME
#KRB5RCACHETYPE=none
#export KRB5RCACHETYPE
;;
stop)
/usr/sbin/squid -k shutdown -f /etc/squid/squidcache.conf
echo "Shutting down squid secondary process"
/usr/sbin/squid -k shutdown -f /etc/squid/squid.conf
echo "Shutting down squid main process"
# The below line is to automatically stop apache at system shutdown
/usr/sbin/httpd -k stop
;;
esac
 
tail> instance 2 cache file:
 
2010/05/22 06:05:18| Beginning Validation Procedure
2010/05/22 06:05:18| Completed Validation Procedure
2010/05/22 06:05:18| Validated 0 Entries
2010/05/22 06:05:18| store_swap_size = 0k
2010/05/22 06:05:18| storeLateRelease: released 0 objects
2010/05/22 06:09:28| Preparing for shutdown after 62 requests
2010/05/22 06:09:28| Waiting 30 seconds for active connections to finish
2010/05/22 06:09:28| FD 16 Closing HTTP connection
2010/05/22 06:09:28| WARNING: store_rewriter #1 (FD 7) exited
2010/05/22 06:09:28| Too few store_rewriter processes are running
2010/05/22 06:09:28| Starting new helpers
2010/05/22 06:09:28| helperOpenServers: Starting 1 'storeurl.pl' processes

 
tail> instance 1 cache file:
 
2010/05/22 06:05:25| 0 Objects expired.
2010/05/22 06:05:25| 0 Objects cancelled.
2010/05/22 06:05:25| 0 Duplicate URLs purged.
2010/05/22 06:05:25| 0 Swapfile clashes avoided.
2010/05/22 06:05:25| Took 0.3 seconds ( 0.0 objects/sec).
2010/05/22 06:05:25| Beginning Validation Procedure
2010/05/22 06:05:25| Completed Validation Procedure
2010/05/22 06:05:25| Validated 0 Entries
2010/05/22 06:05:25| store_swap_size = 0k
2010/05/22 06:05:25| storeLateRelease: released 0 objects
2010/05/22 06:09:28| Preparing for shutdown after 63 requests
2010/05/22 06:09:28| Waiting 30 seconds for active connections to finish
2010/05/22 06:09:28| FD 15 Closing HTTP connection

 
 
regards,
 
 
Bilal
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
https://signup.live.com/signup.aspx?id=60969
Received on Sat May 22 2010 - 18:55:10 MDT

This archive was generated by hypermail 2.2.0 : Sun May 23 2010 - 12:00:32 MDT