Networking Forums

Networking Forums > Computer Networking > Linux Networking > Squid does not receive logrotate signal when start with remote software

Reply
Thread Tools Display Modes

Squid does not receive logrotate signal when start with remote software

 
 
Marius Galm
Guest
Posts: n/a

 
      05-31-2009, 01:18 PM
Hi all,

I've got a strange problem with my squid (2.7.6 stable).

The situation is as follows:

- if I start squid on the shell, using a script which executes
<path>/squid -D, squid works fine and I can use 'squid -k rotate' to
rotate the logfile.

- Now I've got a remote monitoring tools which also can restart squid
using the same script I use on the shell. Squid itself works fine but
once I try to rotate with 'squid -k' notthing happens. With debugging
activated (All,9) nothing can be seen in the cache.log.

- once I restart squid on the shell, the signal is recieve and the logs
are rotated like they should.

strace, ltrace and squid -X debugging always show the same output (only
pids differ)

I also tried to send the logrotate signal (USR1) with the same remote
tool, the results are the same, started on the shell logrotate works,
started with the remote software, logrotate doesn't work.

you can also send the rotate signal directly with kill (kill -USR1 `cat
<path>/squid.pid`) but the behaviour still is the same.

Now I running out of differences, I tried different env settings and
sudo but it keeps ending up in the exact same situation.

If someone might have an idea where to start looking for the cause, I'd
be very thankful for you to tell me.

Cheers, M. G.
 
Reply With Quote
 
 
 
 
Antoine EMERIT
Guest
Posts: n/a

 
      06-01-2009, 04:22 PM
Hi,

Marius Galm <(E-Mail Removed)> écrivait news:gvu02k$cr5$00$(E-Mail Removed)-
online.com:
>...
> - Now I've got a remote monitoring tools which also can restart squid
> using the same script I use on the shell. Squid itself works fine but
> once I try to rotate with 'squid -k' notthing happens. With debugging
> activated (All,9) nothing can be seen in the cache.log.


Which monitoring tools ?

What is the 'remoote' tools used to start squid ?

Does it start squid using the root account ?

....
 
Reply With Quote
 
Marius Galm
Guest
Posts: n/a

 
      06-01-2009, 10:16 PM
Antoine EMERIT schrieb:
> Hi,
>
> Marius Galm <(E-Mail Removed)> écrivait news:gvu02k$cr5$00$(E-Mail Removed)-
> online.com:
>> ...
>> - Now I've got a remote monitoring tools which also can restart squid
>> using the same script I use on the shell. Squid itself works fine but
>> once I try to rotate with 'squid -k' notthing happens. With debugging
>> activated (All,9) nothing can be seen in the cache.log.

>
> Which monitoring tools ?
> What is the 'remoote' tools used to start squid ?


The tool is called runIP but the tool should only send a command to a
process running on the box, which then uses the startup script to start
squid (runs with user: root).

> Does it start squid using the root account ?


yes, squid is started with root from shell (sudo with another user has
the same effect). This main squid process then forks another process
with user squid.

Can you imagine what could cause squid to not receive signals?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to receive signal from neighbours satellite killa Wireless Internet 3 02-21-2008 08:59 PM
Unable to send/receive signal from wireless adapter. Crackles McFarly Network Routers 0 12-26-2007 10:16 AM
NO RECEIVE SIGNAL MICherokee Wireless Networks 4 10-28-2005 08:57 AM
Squid won't start -- Ringo Langly Linux Networking 3 03-01-2005 03:32 PM
Any *nix/software way to receive phone call while online? Mike Ballard Linux Networking 1 06-29-2003 01:46 PM



1 2 3 4 5 6 7 8 9 10 11