<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"><<a href="mailto:nagata@sraoss.co.jp" target="_blank">nagata@sraoss.co.jp</a>></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 <<a href="mailto:gil.corn@gmail.com">gil.corn@gmail.com</a>> wrote:<br>
<br>
> Hi Yugo,<br>
><br>
> I have found  pgpool.init at /pgpool-II-3.4.3/src/redhat but 'dpkg -L<br>
> pgpool' result says<br>
><br>
> dpkg-query: package 'pgpool' is not installed<br>
> Use dpkg --info (= dpkg-deb --info) to examine archive files,<br>
> and dpkg --contents (= dpkg-deb --contents) to list their contents.<br>
<br>
</span>I'm sorry, it's my mistake. The package name is 'pgpool2' not 'pgpool'...<br>
<span class=""><br>
><br>
> But I have installed pgpool according to following doc and it is working<br>
> fine.<br>
><br>
> <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>
><br>
> 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'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>
><br>
> Regards,<br>
> Giles.<br>
><br>
><br>
><br>
><br>
> On Tue, Apr 5, 2016 at 1:21 PM, Yugo Nagata <<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>> wrote:<br>
><br>
> > Hi Giles,<br>
> ><br>
> > If you build pgpool-II from the tar ball, src/redhat/pgpool.init is this.<br>
> > Otherwize, if you installed by apt-get or deb packages, unfortunately I<br>
> > don't<br>
> > know where is. However, in my ubuntu, `dpkg -L pgpool` reuslt says<br>
> > /etc/init.d/pgpoo2 exists.<br>
> ><br>
> > Regards,<br>
> > Yugo.<br>
> ><br>
> > On Tue, 5 Apr 2016 12:18:23 +0600<br>
> > Giles Cornelius <<a href="mailto:gil.corn@gmail.com">gil.corn@gmail.com</a>> wrote:<br>
> ><br>
> > > Dear Nagata,<br>
> > ><br>
> > > Thank you for your response. Where is the init script of pgpool? There is<br>
> > > no file at /etc/init.d/ named pgpool or pgpool2.<br>
> > ><br>
> > > Regards,<br>
> > > Giles.<br>
> > ><br>
> > > On Tue, Apr 5, 2016 at 8:04 AM, Yugo Nagata <<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>> wrote:<br>
> > ><br>
> > > > Hi,<br>
> > > ><br>
> > > > On Mon, 4 Apr 2016 17:54:42 +0600<br>
> > > > Giles Cornelius <<a href="mailto:gil.corn@gmail.com">gil.corn@gmail.com</a>> wrote:<br>
> > > ><br>
> > > > > Dear Friends,<br>
> > > > ><br>
> > > > > When I reboot pgpool server /var/run/pgpool is deleted. Every time I<br>
> > > > reboot<br>
> > > > > the server the I need to create pgpool and change owner and<br>
> > permission. I<br>
> > > > > am using pgpool 3.4 on Ubuntu.<br>
> > > > ><br>
> > > > > What is the solution of this problem?<br>
> > > ><br>
> > > > 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>
> > > > ><br>
> > > > > Regards,<br>
> > > > > Giles.<br>
> > > > ><br>
> > > > ><br>
> > > > > --<br>
> > > ><br>
> > > ><br>
> > > > --<br>
> > > > Yugo Nagata <<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>><br>
> > > ><br>
> > ><br>
> > ><br>
> > ><br>
> > > --<br>
> > ><br>
> > > *<br>
> > ><br>
> > > Every 3000 sheets of paper cost us a tree. Think about hazards related to<br>
> > > climate change before printing this e-mail.*<br>
> ><br>
> ><br>
> > --<br>
> > Yugo Nagata <<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>><br>
> ><br>
><br>
><br>
><br>
> --<br>
><br>
> *<br>
><br>
> Every 3000 sheets of paper cost us a tree. Think about hazards related to<br>
> climate change before printing this e-mail.*<br>
<br>
<br>
--<br>
Yugo Nagata <<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>><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>