From: Matthias Fischer <matthias.fischer@ipfire.org>
To: development@lists.ipfire.org
Subject: For discussion - revised '/etc/init.d/squid' for 3.5.XX
Date: Sat, 14 May 2016 10:42:37 +0200 [thread overview]
Message-ID: <ad8dca00-08dd-bff7-1c63-1b378d3c9ec6@ipfire.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1575 bytes --]
Hi,
Last, but not least - I think time is overdue to put this on the list: ;-)
In the last months, while working on updates from 'squid 3.4.14' =>
'3.5.XX', I always noticed that the new 'squid' had serious problems,
logged in '/var/log/squid/cache.log'.
The finally found reason is the current STOP-routine in '/etc/init.d/squid':
While the 'squid'-process stops immediately after 'squid -k shutdown',
at least ONE process - (squid-1) - keeps running for a few seconds,
depending on the number of open files etc.
Subsequently, this process is nevertheless killed by 'killproc
/usr/sbin/squid >/dev/null', because this process can't be seen by the
testing loop:
...
while [ ${counter} -gt 0 ]; do
statusproc /usr/sbin/squid >/dev/null && break;
sleep 1
counter=$(( ${counter} - 1))
done
...
So the next 'killproc'-command kills this - still running -
'(squid-1)'-process, resulting in a somehow damaged index file
(/var/log/cache/swap.state).
The message is: "Rebuilding storage in /var/log/cache" (dirty log)"
In the following I always got several errors and warnings in
'/var/log/squid/cache.log', as described here:
https://forum.ipfire.org/viewtopic.php?f=17&t=16526#p97704 (german!)
So I started working on a solution by reworking the 'while'-loop, the
current version can be seen here:
https://forum.ipfire.org/viewtopic.php?f=17&t=16526&start=15#p97986
If anyone has new/better ideas or solutions how to handle this, they're
welcome!
Sorry for starting this a bit late, but I wanted to be REALLY sure,
before I put this on the list.
Best,
Matthias
reply other threads:[~2016-05-14 8:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ad8dca00-08dd-bff7-1c63-1b378d3c9ec6@ipfire.org \
--to=matthias.fischer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox