Hi!

I'll work on Pound 2.4.3 (this one can be found in Debian stable repo).
I know that there are few newer stable 2.4.x versions and 2.5 too ;-)

http://www.apsis.ch/pound/pound_list/archive/2007/2007-04/1177939138000#1177939138000

I'd like to learn how to correctly use Grace option with SIGHUP to ensure
continuous requests processing. The reason of sending SIGHUP is that
configuration has changed.

I see that after sending SIGHUP to Pound configured with Grace option,
it unbind all previously occupied TCP ports, remaining still in memory to
process existing connections. It then still holds control socket, 'pundctl'
command can be issued on it.

I could start new Pound immediately after sending SIGHUP to previous
process. This would lead to very small period, when nothing would be
bound to TCP ports - some very small amount of clients would get TCP
REJECT trying to connect to my services.

The problem is that if I specify big enough value for Grace option, then
for quite a long time (e.g. 5 minutes) there would be two copies of
Pound running - both using same control socket. Of course new process
take control over socket file, so previously running process is no longer
visible to 'poundctl' command.

In Debian, init.d script is totally not prepared for issuing SIGHUP to
Pound - e.g. it holds only one location with PID of newly created process.
Of course it also do not handle SIGHUP configuration "reload".

In worst case, there could be several "previous" instances of Pound,
all unbound after receiving SIHUP but still processing requests.

Then I'd like to learn how to properly handle this issue - I hope there
is a kind of "officially supported" start/stop/reload script for Pound, that
covers this issue.

The scirpt should control 'configuration reload' using SIGHUP + monitor
if attempt to create new process succeeded (e.g. if new copy would be
started too fast, previous could be still bound to TCP, etc). Then it should
somehow register all "unbounded" copies of Pound running in system.

Does this kind of general-purpose (distro independent) script exists?

Thanks;
AdamLis;

--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to