<div dir="ltr">Dear Nagata,<div><br></div><div>Thank you for your response. Where is the init script of pgpool? There is no file at /etc/init.d/ named pgpool or pgpool2.</div><div><br></div><div>Regards,</div><div>Giles.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 5, 2016 at 8:04 AM, Yugo Nagata <span dir="ltr">&lt;<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@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>
<span class=""><br>
On Mon, 4 Apr 2016 17:54:42 +0600<br>
Giles Cornelius &lt;<a href="mailto:gil.corn@gmail.com">gil.corn@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Dear Friends,<br>
&gt;<br>
&gt; When I reboot pgpool server /var/run/pgpool is deleted. Every time I reboot<br>
&gt; the server the I need to create pgpool and change owner and permission. I<br>
&gt; am using pgpool 3.4 on Ubuntu.<br>
&gt;<br>
&gt; What is the solution of this problem?<br>
<br>
</span>I think this is a problem of Ubuntu not pgpool. I guess /var/run<br>
is mounted to tmpfs, so the contents of the directory is deleted on<br>
reboot. If so, the directory for pid should be made in the init<br>
script such as:<br>
<br>
PGPOOLUSER=postgres<br>
...<br>
PGPOOLPIDDIR=/var/run/pgpool<br>
...<br>
<br>
if [ ! -d $PGPOOLPIDDIR ]<br>
then<br>
    mkdir $PGPOOLPIDDIR<br>
    chown ${PGPOOLUSER}: $PGPOOLPIDDIR<br>
fi<br>
<br>
<br>
&gt;<br>
&gt; Regards,<br>
&gt; Giles.<br>
&gt;<br>
<span class="HOEnZb"><font color="#888888">&gt;<br>
&gt; --<br>
<br>
<br>
--<br>
Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><b><span style="color:rgb(51,51,255)"><font size="2"><span style="text-decoration:underline">                            
                                                                         
 </span><br><span style="font-family:tahoma,new york,times,serif">Every 3000 sheets of 
paper cost us a tree. Think about hazards related to climate change 
before printing this e-mail.</span></font></span></b></div>
</div>