<div dir="ltr">Hi Yugo,<div><br></div><div>I can see that lot of paths are lot of paths in pgpool.init which are not matching with ubuntu. Can you please tell me what are the changes I need to make in that file.</div><div><br></div><div>Regards,</div><div>Giles. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 7:23 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 Giles,<br>
<span class=""><br>
On Tue, 5 Apr 2016 16:43:50 +0600<br>
Giles Cornelius &lt;<a href="mailto:gil.corn@gmail.com">gil.corn@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hi Yugo,<br>
&gt;<br>
&gt; I have found  pgpool.init at /pgpool-II-3.4.3/src/redhat but &#39;dpkg -L<br>
&gt; pgpool&#39; result says<br>
&gt;<br>
&gt; dpkg-query: package &#39;pgpool&#39; is not installed<br>
&gt; Use dpkg --info (= dpkg-deb --info) to examine archive files,<br>
&gt; and dpkg --contents (= dpkg-deb --contents) to list their contents.<br>
<br>
</span>I&#39;m sorry, it&#39;s my mistake. The package name is &#39;pgpool2&#39; not &#39;pgpool&#39;...<br>
<span class=""><br>
&gt;<br>
&gt; But I have installed pgpool according to following doc and it is working<br>
&gt; fine.<br>
&gt;<br>
&gt; <a href="http://www.pgpool.net/pgpool-web/contrib_docs/simple_sr_setting2_3.3/" rel="noreferrer" target="_blank">http://www.pgpool.net/pgpool-web/contrib_docs/simple_sr_setting2_3.3/</a><br>
&gt;<br>
&gt; What should I do now?<br>
<br>
</span>Just copy pgpool.init included in the tar ball as /etc/init.d/pgpool. This will<br>
make /var/run/pgpool directory if doesn&#39;t exist when pgpool-II is started by the<br>
script.<br>
<br>
However, note that this is basically made for RHEL not Ubuntu. For example,<br>
this looks for configuration file in the /etc/sysconfig not /etc/default.<br>
Maybe, some modification migth be needed.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
&gt;<br>
&gt; Regards,<br>
&gt; Giles.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Apr 5, 2016 at 1:21 PM, Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Hi Giles,<br>
&gt; &gt;<br>
&gt; &gt; If you build pgpool-II from the tar ball, src/redhat/pgpool.init is this.<br>
&gt; &gt; Otherwize, if you installed by apt-get or deb packages, unfortunately I<br>
&gt; &gt; don&#39;t<br>
&gt; &gt; know where is. However, in my ubuntu, `dpkg -L pgpool` reuslt says<br>
&gt; &gt; /etc/init.d/pgpoo2 exists.<br>
&gt; &gt;<br>
&gt; &gt; Regards,<br>
&gt; &gt; Yugo.<br>
&gt; &gt;<br>
&gt; &gt; On Tue, 5 Apr 2016 12:18:23 +0600<br>
&gt; &gt; Giles Cornelius &lt;<a href="mailto:gil.corn@gmail.com">gil.corn@gmail.com</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Dear Nagata,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thank you for your response. Where is the init script of pgpool? There is<br>
&gt; &gt; &gt; no file at /etc/init.d/ named pgpool or pgpool2.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Regards,<br>
&gt; &gt; &gt; Giles.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Tue, Apr 5, 2016 at 8:04 AM, Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Hi,<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Mon, 4 Apr 2016 17:54:42 +0600<br>
&gt; &gt; &gt; &gt; Giles Cornelius &lt;<a href="mailto:gil.corn@gmail.com">gil.corn@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Dear Friends,<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; When I reboot pgpool server /var/run/pgpool is deleted. Every time I<br>
&gt; &gt; &gt; &gt; reboot<br>
&gt; &gt; &gt; &gt; &gt; the server the I need to create pgpool and change owner and<br>
&gt; &gt; permission. I<br>
&gt; &gt; &gt; &gt; &gt; am using pgpool 3.4 on Ubuntu.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; What is the solution of this problem?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; I think this is a problem of Ubuntu not pgpool. I guess /var/run<br>
&gt; &gt; &gt; &gt; is mounted to tmpfs, so the contents of the directory is deleted on<br>
&gt; &gt; &gt; &gt; reboot. If so, the directory for pid should be made in the init<br>
&gt; &gt; &gt; &gt; script such as:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; PGPOOLUSER=postgres<br>
&gt; &gt; &gt; &gt; ...<br>
&gt; &gt; &gt; &gt; PGPOOLPIDDIR=/var/run/pgpool<br>
&gt; &gt; &gt; &gt; ...<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; if [ ! -d $PGPOOLPIDDIR ]<br>
&gt; &gt; &gt; &gt; then<br>
&gt; &gt; &gt; &gt;     mkdir $PGPOOLPIDDIR<br>
&gt; &gt; &gt; &gt;     chown ${PGPOOLUSER}: $PGPOOLPIDDIR<br>
&gt; &gt; &gt; &gt; fi<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; Regards,<br>
&gt; &gt; &gt; &gt; &gt; Giles.<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; --<br>
&gt; &gt; &gt; &gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; --<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; *<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Every 3000 sheets of paper cost us a tree. Think about hazards related to<br>
&gt; &gt; &gt; climate change before printing this e-mail.*<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; *<br>
&gt;<br>
&gt; Every 3000 sheets of paper cost us a tree. Think about hazards related to<br>
&gt; climate change before printing this e-mail.*<br>
<br>
<br>
--<br>
Yugo Nagata &lt;<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>&gt;<br>
</div></div></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>