<div dir="ltr">I have been able to find a workaround this issue by adding a function on the init script that waits for the port 9009 to be close before starting PgPool on the restart command of the script.<div><br></div><div><br><div><br></div><div><br><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 21, 2016 at 7:49 PM Jacobo García López de Araujo &lt;<a href="mailto:jacobo.garcia@gmail.com">jacobo.garcia@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am finding this trouble in a two nodes cluster setup. Both nodes have the same configuration (I can post it if needed). I can restart the standby node as many times I want without problem. <div><div><br></div><div>When I try to restart the master node, it stops correctly but then when it starts again it brings the following error message (redacted)<br></div></div><div><br></div><div><div><div>Sep 21 17:38:45 <a href="http://srv0.net" target="_blank">srv0.net</a> pgpool: 2016-09-21 17:38:45: pid 1947: FATAL:  failed to create watchdog receive socket</div><div>Sep 21 17:38:45 <a href="http://srv0.net" target="_blank">srv0.net</a> pgpool: 2016-09-21 17:38:45: pid 1947: DETAIL:  bind on &quot;TCP:9009&quot; failed with reason: &quot;Address already in use&quot;</div><div>Sep 21 17:38:45 <a href="http://srv0.net" target="_blank">srv0.net</a> pgpool: 2016-09-21 17:38:45: pid 1940: LOG:  watchdog child process with pid: 1947 exits with status 768</div><div>Sep 21 17:38:45 <a href="http://srv0.net" target="_blank">srv0.net</a> pgpool: 2016-09-21 17:38:45: pid 1940: FATAL:  watchdog child process exit with fatal error. exiting pgpool-II</div><div><br></div></div></div><div>Linked is the complete error message: <a href="https://gist.github.com/therobot/dc410f0ccc56e302866329c43670ec38" target="_blank">https://gist.github.com/therobot/dc410f0ccc56e302866329c43670ec38</a><br><div><div><br></div><div>It seems to me that PgPool fails to close the watchdog socket (9009) on time and when it started it finds the socket still opened. </div><div><br></div><div>The init script sends a -INT signal to PgPool in order to stop it. I have also tried replacing the killproc signal with &#39;pgpool stop -m smart&#39; in the init script without too much luck.<br><div><br></div><div>Thanks in advance.</div><div><br></div></div></div></div></div><div dir="ltr"><div dir="ltr"><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Jacobo García López de Araujo.</div></div></div></div></blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Jacobo García López de Araujo.</div></div>