<div dir="ltr">Hello,<div><br></div><div>ifconfig_path = &#39;/home/ubuntu/apps/scripts&#39;<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 = &#39;pg_ni_up.sh up eth0:1 10.0.1.244 255.255.255.0&#39; <div>if_down_cmd = &#39;pg_ni_up.sh down eth0:1&#39;</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 &quot;if_<b>up</b>_cmd &quot; is described as &quot;The command to bring <b>down</b> the virtual IP&quot; and &quot;if_<b>down</b>_cmd&quot; as &quot;The command to bring <b>up</b> the virtual IP&quot;. 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">&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>
<div class=""><br>
On Sun, 9 Mar 2014 03:00:52 +0000<br>
Gintautas Sulskus &lt;<a href="mailto:gingaz@gmail.com">gingaz@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am trying to set up pgpool watchdog. For virtual IP control my plan is to<br>
&gt; use bash scripts (if_up_cmd/if_down_cmd). In my script I use some<br>
&gt; environment variables.<br>
&gt;<br>
&gt; A strange thing occurs here. No matter under what user I run pgpool, script<br>
&gt; can&#39;t pick up my custom environment variables from /etc/environment<br>
&gt; (including customised PATH). It still sees standard binaries like ifconfig<br>
&gt; 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>
&gt;<br>
&gt; Same script, when run manually by me, works under all users. Any ideas what<br>
&gt; can be wrong?<br>
&gt;<br>
&gt; The only solution I have come up is to redefine env variables in the script.<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt; Best Regards,<br>
&gt; Gintas<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<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>Best Regards,<br>Gintautas Sulskus
</div>