<div dir="ltr">Hello,<br><br><div>I am trying to set up pgpool watchdog. For virtual IP control my plan is to use bash scripts (<span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:x-small">if_up_cmd/</span><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:x-small">if_down_cmd). </span>In my script I use some environment variables.</div>
<div><br></div><div>A strange thing occurs here. No matter under what user I run pgpool, script can&#39;t pick up my custom environment variables from /etc/environment (including customised PATH). It still sees standard binaries like ifconfig though.</div>
<div><br></div><div>Same script, when run manually by me, works under all users. Any ideas what can be wrong?</div><div><br></div><div>The only solution I have come up is to redefine env variables in the script.</div><div>
<br></div><div>Thanks.</div><div><br></div><div><div>Best Regards,<br>Gintas<p class=""></p></div></div></div>