<div dir="ltr">It&#39;s the systemd server file from Ubuntu 16.04:<div><div>[Unit]</div><div>Description=pgpool-II</div><div>Documentation=man:pgpool(8)</div><div>Wants=postgresql.service</div><div><br></div><div>[Service]</div><div>User=postgres</div><div>ExecStart=/usr/sbin/pgpool -n</div><div>ExecReload=/bin/kill -HUP $MAINPID</div><div>StandardOutput=syslog</div><div>SyslogFacility=local0</div><div><br></div><div>[Install]</div><div>WantedBy=multi-user.target</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 24, 2017 at 8:07 AM, Bo Peng <span dir="ltr">&lt;<a href="mailto:pengbo@sraoss.co.jp" target="_blank">pengbo@sraoss.co.jp</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
It looks that pgpool wasn&#39;t terminated correctly.<br>
<br>
Could you show me your service file?<br>
<div><div class="h5"><br>
On Sun, 20 Aug 2017 15:37:19 +0430<br>
Keyvan Hedayati &lt;<a href="mailto:k1.hedayati93@gmail.com">k1.hedayati93@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hello,<br>
&gt; We use pgpool for load balancing two postgres databases that has replicated<br>
&gt; using streaming replication. I&#39;ve only enabled load balancing feature and<br>
&gt; other options are off.<br>
&gt; When I&#39;m trying to restart pgpool with systemctl I get an error like this:<br>
&gt;<br>
&gt; Aug 20 14:34:40 Beta pgpool[16184]:  [16184] [No Connection]@[No<br>
&gt; Connection] FATAL:  failed to bind a socket: &quot;/tmp/.s.PGSQL.5432&quot;<br>
&gt; Aug 20 14:34:40 Beta pgpool[16184]:  [16184] [No Connection]@[No<br>
&gt; Connection] DETAIL:  bind socket failed with error: &quot;Address already in use&quot;<br>
&gt;<br>
&gt; Seems like pgpool can not delete it&#39;s socket files so after being stopped<br>
&gt; it can&#39;t start. But socket files have full permissions:<br>
&gt; srwxrwxrwx 1 postgres postgres 0 Aug 20 14:24 /tmp/.s.PGSQL.5432<br>
&gt; srwxrwxrwx 1 postgres postgres 0 Aug 20 14:24 /tmp/.s.PGSQL.9898<br>
&gt;<br>
&gt; I&#39;ve attached my configuration file.<br>
&gt; This is pgpool version I&#39;m using which latest version if Ubuntu 16.04<br>
&gt; apparently.<br>
&gt; pgpool-II version 3.4.3 (tataraboshi)<br>
&gt;<br>
&gt; Have I configured something wrong or I&#39;ve to install latest version?<br>
&gt;<br>
&gt; --<br>
&gt; Live long and prosper,<br>
</div></div>&gt; K1.H &lt;<a href="http://k1h.ir/" rel="noreferrer" target="_blank">http://k1h.ir/</a>&gt;<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Bo Peng &lt;<a href="mailto:pengbo@sraoss.co.jp">pengbo@sraoss.co.jp</a>&gt;<br>
SRA OSS, Inc. Japan<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Live long and prosper,<div><a href="http://k1h.ir/" target="_blank">K1.H</a></div></div></div></div></div>
</div>