<div dir="ltr">Hello,<div><br></div><div>ifconfig_path = '/home/ubuntu/apps/scripts'<br>PgpoolAdmin description of ifconfig_path is: The path of a command to switch the IP address. I understand it as the path for if_up_cmd and if_down_cmd commands.<br>
<br>if_up_cmd = 'pg_ni_up.sh up eth0:1 10.0.1.244 255.255.255.0' <div>if_down_cmd = 'pg_ni_up.sh down eth0:1'</div><div><br></div><div><br></div><div>PS. Is this mailing list the right place to discuss about PgpoolAdmin?</div>
In the latest PgpoolAdmin version "if_<b>up</b>_cmd " is described as "The command to bring <b>down</b> the virtual IP" and "if_<b>down</b>_cmd" as "The command to bring <b>up</b> the virtual IP". Clearly descriptions are mixed up.<div>








<div><br></div><div>Gintautas</div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 10, 2014 at 2:46 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,<br>
<div class=""><br>
On Sun, 9 Mar 2014 03:00:52 +0000<br>
Gintautas Sulskus <<a href="mailto:gingaz@gmail.com">gingaz@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I am trying to set up pgpool watchdog. For virtual IP control my plan is to<br>
> use bash scripts (if_up_cmd/if_down_cmd). In my script I use some<br>
> environment variables.<br>
><br>
> A strange thing occurs here. No matter under what user I run pgpool, script<br>
> can't pick up my custom environment variables from /etc/environment<br>
> (including customised PATH). It still sees standard binaries like ifconfig<br>
> though.<br>
<br>
</div>How do you configure pgpool.conf about if_up_cmd, if_down_cmd, ifconfig_path?<br>
pgpool see ifconfig commands on the path specified by these options.<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> Same script, when run manually by me, works under all users. Any ideas what<br>
> can be wrong?<br>
><br>
> The only solution I have come up is to redefine env variables in the script.<br>
><br>
> Thanks.<br>
><br>
> Best Regards,<br>
> Gintas<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Yugo Nagata <<a href="mailto:nagata@sraoss.co.jp">nagata@sraoss.co.jp</a>><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<br>Gintautas Sulskus
</div>