Search squid archive

Re: Startup/shutdown script which was working perfactly alright for squid 3.0stable25 is not working for squid 2.7 stable9.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



GIGO . wrote:
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


The script looks right to me.

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

This message means the Squid instance has received the shutdown signal from some external process. Either kill or squid -k shutdown.

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

That may be a bug, restarting helpers on shutdown looks wrong.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.3

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux