Re: [squid-users] A way/hack to force squid to die?

2011-06-14 Thread Tom Tux
2011/6/10 Amos Jeffries squ...@treenet.co.nz: On 10/06/11 20:41, Tom Tux wrote: Mmm... Now I were able to force squid to die (with gdb):  From cache.log: --- SNIP --- (squid)(death+0x37)[0x564d37] /lib64/libpthread.so.0(+0xf5d0)[0x7f99ebe705d0] FATAL: Received Segment Violation...dying.

Re: [squid-users] A way/hack to force squid to die?

2011-06-14 Thread Amos Jeffries
On 14/06/11 18:42, Tom Tux wrote: 2011/6/10 Amos Jeffriessqu...@treenet.co.nz: On 10/06/11 20:41, Tom Tux wrote: Mmm... Now I were able to force squid to die (with gdb): From cache.log: --- SNIP --- (squid)(death+0x37)[0x564d37] /lib64/libpthread.so.0(+0xf5d0)[0x7f99ebe705d0] FATAL:

Re: [squid-users] A way/hack to force squid to die?

2011-06-14 Thread Tom Tux
2011/6/14 Amos Jeffries squ...@treenet.co.nz: On 14/06/11 18:42, Tom Tux wrote: 2011/6/10 Amos Jeffriessqu...@treenet.co.nz: On 10/06/11 20:41, Tom Tux wrote: Mmm... Now I were able to force squid to die (with gdb):  From cache.log: --- SNIP --- (squid)(death+0x37)[0x564d37]

Re: [squid-users] A way/hack to force squid to die?

2011-06-10 Thread Tom Tux
From squid.conf.documented: --- SNIP --- # TAG: cache_mgr # Email-address of local cache manager who will receive # mail if the cache dies. The default is webmaster. #Default: # cache_mgr webmaster --- SNAP --- As I understand, squid will send a mail to the defined mail-recipient,

Re: [squid-users] A way/hack to force squid to die?

2011-06-10 Thread Amos Jeffries
On 10/06/11 08:32, da...@lang.hm wrote: On Thu, 9 Jun 2011, Helmut Hullen wrote: Hallo, Tom, Du meintest am 09.06.11: I need to verify, if I get a mail when squid dies (I put a correct mailaddress in cache_mgr-directive). Is there a way/hack to force squid to die? Yes - this daemon is

Re: [squid-users] A way/hack to force squid to die?

2011-06-10 Thread Amos Jeffries
On 09/06/11 23:24, Tom Tux wrote: Hi I need to verify, if I get a mail when squid dies (I put a correct mailaddress in cache_mgr-directive). Is there a way/hack to force squid to die? I tried several things like revoking permissions on the the cache-dir, moving cache.log away... - but squid is

Re: [squid-users] A way/hack to force squid to die?

2011-06-10 Thread Helmut Hullen
Hallo, Tom, Du meintest am 10.06.11: From squid.conf.documented: -+- SNIP --- # TAG: cache_mgr # Email-address of local cache manager who will receive # mail if the cache dies. The default is webmaster. if the cache dies That's another thing than a dying squid. Viele

Re: [squid-users] A way/hack to force squid to die?

2011-06-10 Thread Tom Tux
Mmm... Now I were able to force squid to die (with gdb): From cache.log: --- SNIP --- (squid)(death+0x37)[0x564d37] /lib64/libpthread.so.0(+0xf5d0)[0x7f99ebe705d0] FATAL: Received Segment Violation...dying. 2011/06/10 10:37:28.408| storeDirWriteCleanLogs: Starting... 2011/06/10 10:37:28.409|

Re: [squid-users] A way/hack to force squid to die?

2011-06-10 Thread Amos Jeffries
On 10/06/11 20:41, Tom Tux wrote: Mmm... Now I were able to force squid to die (with gdb): From cache.log: --- SNIP --- (squid)(death+0x37)[0x564d37] /lib64/libpthread.so.0(+0xf5d0)[0x7f99ebe705d0] FATAL: Received Segment Violation...dying. 2011/06/10 10:37:28.408| storeDirWriteCleanLogs:

[squid-users] A way/hack to force squid to die?

2011-06-09 Thread Tom Tux
Hi I need to verify, if I get a mail when squid dies (I put a correct mailaddress in cache_mgr-directive). Is there a way/hack to force squid to die? I tried several things like revoking permissions on the the cache-dir, moving cache.log away... - but squid is still alive. Many thanks. Tom

Re: [squid-users] A way/hack to force squid to die?

2011-06-09 Thread jeffrey j donovan
On Jun 9, 2011, at 7:24 AM, Tom Tux wrote: Hi I need to verify, if I get a mail when squid dies (I put a correct mailaddress in cache_mgr-directive). Is there a way/hack to force squid to die? I tried several things like revoking permissions on the the cache-dir, moving cache.log away...

Re: [squid-users] A way/hack to force squid to die?

2011-06-09 Thread Tom Tux
But a kill -9 kills squid the hard way. So I don't get the desired mail (cache_mgr-directive). 2011/6/9 jeffrey j donovan dono...@beth.k12.pa.us: On Jun 9, 2011, at 7:24 AM, Tom Tux wrote: Hi I need to verify, if I get a mail when squid dies (I put a correct mailaddress in

Re: [squid-users] A way/hack to force squid to die?

2011-06-09 Thread Helmut Hullen
Hallo, jeffrey, Du meintest am 09.06.11: I need to verify, if I get a mail when squid dies (I put a correct mailaddress in cache_mgr-directive). Is there a way/hack to force squid to die? I tried several things like revoking permissions on the the cache-dir, moving cache.log away... - but

Re: [squid-users] A way/hack to force squid to die?

2011-06-09 Thread Helmut Hullen
Hallo, Tom, Du meintest am 09.06.11: I need to verify, if I get a mail when squid dies (I put a correct mailaddress in cache_mgr-directive). Is there a way/hack to force squid to die? Yes - this daemon is started from a script p.e. with the command /etc/init.d/squid start (the

Re: [squid-users] A way/hack to force squid to die?

2011-06-09 Thread Tom Tux
Hi Helmut killall (without any parameter) sends a sigterm (kill -15) to the squid-processes. This command kill's indeed all sqBut this does not bring squid to die and then send the mail. This command does just kill the processes. 2011/6/9 Helmut Hullen hul...@t-online.de: Hallo, Tom, Du

Re: [squid-users] A way/hack to force squid to die?

2011-06-09 Thread Tom Tux
Ooopsbad mail. Again: Hi Helmut killall (without any parameter) sends a sigterm (kill -15) to the squid-processes. This command kill's indeed all squid-processes, but does not bring squid to send me the desired mail. I think, that if squid realize that something is wrong, it shutdown (or

Re: [squid-users] A way/hack to force squid to die?

2011-06-09 Thread Helmut Hullen
Hallo, Tom, Du meintest am 09.06.11: Brute force (under a linux distribution):        killall squid (if you are curious: repeat the command) [Toppost and fullquote reordered] killall (without any parameter) sends a sigterm (kill -15) to the squid-processes. This command kill's indeed

Re: [squid-users] A way/hack to force squid to die?

2011-06-09 Thread david
On Thu, 9 Jun 2011, Helmut Hullen wrote: Hallo, Tom, Du meintest am 09.06.11: I need to verify, if I get a mail when squid dies (I put a correct mailaddress in cache_mgr-directive). Is there a way/hack to force squid to die? Yes - this daemon is started from a script p.e. with the command

Re: [squid-users] A way/hack to force squid to die?

2011-06-09 Thread Helmut Hullen
Hallo, david, Du meintest am 09.06.11: Brute force (under a linux distribution): killall squid (if you are curious: repeat the command) actually, you do need to repeat the command. Squid doesn't stop immediatly when it gets the standard kill signal (15), it does some sort of