Re: [squid-users] BUG !? swap.state: (13) Permission denied ...

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 07 Feb 2010 15:15:30 +1300

Riccardo Castellani wrote:
> So "killall -HUP squid" command to parent process, permit Squid to
> reload squid.conf becuase restart it, ok ?
>

"killall" does this:

  * killall signal -HUP shutdown to child 'squid' process
     -> child process begins shutdown cleanup procedure.

  * killall signal -HUP to master 'squid' process
     -> master process signal -HUP to child process
       -> child process receives double-HUP "abort shutdown NOW"
       -> child process abandons all system resources and aborts
shutdown cleanup actions.

Use "kill" not "killall". Or best to use "squid -k ..."

Amos

>
> ----- Original Message ----- From: "Amos Jeffries" <squid3_at_treenet.co.nz>
> To: <squid-users_at_squid-cache.org>
> Sent: Sunday, February 07, 2010 12:24 AM
> Subject: Re: [squid-users] BUG !? swap.state: (13) Permission denied ...
>
>
>> Riccardo Castellani wrote:
>>> But can I always use "killall -HUP squid" command ? I'm newby on this
>>> Squid version.
>>> I killed squid with killall ?!
>>>
>>
>> I don't think so. killall does nasty things to the child processes
>> inside Squid. Best to avoid it.
>>
>> You can kill -HUP the parent process by itself. Which is the same as
>> "squid -k shutdown", and passes the skill signal to the squid child
>> process after some initial cleanup.
>>
>> Amos
>>
>>>
>>> ----- Original Message ----- From: "Amos Jeffries"
>>> <squid3_at_treenet.co.nz>
>>> To: <squid-users_at_squid-cache.org>
>>> Sent: Saturday, February 06, 2010 11:56 PM
>>> Subject: Re: [squid-users] BUG !? swap.state: (13) Permission denied ...
>>>
>>>
>>>> Riccardo Castellani wrote:
>>>>> I'm using Squid 2.7 Stable in Debian Sarge environment, when I
>>>>> tried to restart Squid service but process died.
>>>>> I got this message in cache.log : "swap.state: (13) Permission
>>>>> denied ..."
>>>>> First to restart I send killall -HUP squid. What happened ?!
>>>>
>>>> You killed Squid before it completed writing and setting ownership
>>>> details for the new swap.state file.
>>>>
>>>> Erase the swap.state file and start Squid again as you normally would.
>>>> Have some patience this time because the startup may take a long
>>>> time to regenerate the content of swap.state from on-disk information.
>>>>
>>>> Amos
>>>> --
>>>> Please be using
>>>> Current Stable Squid 2.7.STABLE7 or 3.0.STABLE23
>>>> Current Beta Squid 3.1.0.16
>>>
>>
>>
>> --
>> Please be using
>> Current Stable Squid 2.7.STABLE7 or 3.0.STABLE23
>> Current Beta Squid 3.1.0.16
>

-- 
Please be using
   Current Stable Squid 2.7.STABLE7 or 3.0.STABLE23
   Current Beta Squid 3.1.0.16
Received on Sun Feb 07 2010 - 02:15:41 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 09 2010 - 12:00:04 MST