On 18/03/11 04:10, N3O wrote:
Hello I'm having a problem trying to shutdown a squid instance. Version 3.1.11 when i do a service squid stop or /etc/init.d/squid stop it shows: [root@ip-10-170-99-79 subsys]# ps -ef | grep squid root 3662 1 0 10:40 ? 00:00:00 squid squid 3780 3662 0 10:55 ? 00:00:00 (squid) squid 3783 3780 0 10:55 ? 00:00:00 (unlinkd) root 3825 2379 0 10:58 pts/0 00:00:00 grep squid [root@ip-10-170-99-79 subsys]# service squid stop Stopping squid: .................................................. [root@ip-10-170-99-79 subsys]# ps -ef | grep squid root 3662 1 0 10:40 ? 00:00:00 squid squid 3864 3662 0 10:59 ? 00:00:00 (squid) squid 3867 3864 0 10:59 ? 00:00:00 (unlinkd) root 3903 2379 0 11:00 pts/0 00:00:00 grep squid the same happens with /etc/init.d/squid stop [root@ip-10-170-99-79 subsys]# ps -ef | grep squid root 3662 1 0 10:40 ? 00:00:00 squid squid 3946 3662 0 11:01 ? 00:00:00 (squid) squid 3949 3946 0 11:01 ? 00:00:00 (unlinkd) root 3985 2379 0 11:04 pts/0 00:00:00 grep squid [root@ip-10-170-99-79 subsys]# /etc/init.d/squid stop Stopping squid: .................................................. [root@ip-10-170-99-79 subsys]# ps -ef | grep squid root 3662 1 0 10:40 ? 00:00:00 squid squid 4019 3662 0 11:05 ? 00:00:00 (squid) squid 4022 4019 0 11:05 ? 00:00:00 (unlinkd) root 4056 2379 0 11:07 pts/0 00:00:00 grep squid [root@ip-10-170-99-79 subsys]# It doesnt stop squid, it seems that is just reloading it??? is this normal???
This behaviour shows up when there is a crash during the shutdown of the worker process. The master only sees the child ending on a crash and restarts.
You will need to do some tracking down to find out what the crash is about. Hopefully it is mentioned in cache.log. Some tricks with testing on a production machines are detailed at http://wiki.squid-cache.org/SquidFaq/BugReporting
When you know what it is please check bugzilla, there are a few known causes of shutdown crashing. If you find its a new one, please add a new bug entry about it.
Amos -- Please be using Current Stable Squid 2.7.STABLE9 or 3.1.11 Beta testers wanted for 3.2.0.5