[pgpool-general: 2606] Re: bash script can't see env variables when run by pgpool
Yugo Nagata
nagata at sraoss.co.jp
Mon Mar 10 11:46:25 JST 2014
Hi,
On Sun, 9 Mar 2014 03:00:52 +0000
Gintautas Sulskus <gingaz at gmail.com> wrote:
> Hello,
>
> I am trying to set up pgpool watchdog. For virtual IP control my plan is to
> use bash scripts (if_up_cmd/if_down_cmd). In my script I use some
> environment variables.
>
> A strange thing occurs here. No matter under what user I run pgpool, script
> can't pick up my custom environment variables from /etc/environment
> (including customised PATH). It still sees standard binaries like ifconfig
> though.
How do you configure pgpool.conf about if_up_cmd, if_down_cmd, ifconfig_path?
pgpool see ifconfig commands on the path specified by these options.
>
> Same script, when run manually by me, works under all users. Any ideas what
> can be wrong?
>
> The only solution I have come up is to redefine env variables in the script.
>
> Thanks.
>
> Best Regards,
> Gintas
--
Yugo Nagata <nagata at sraoss.co.jp>
More information about the pgpool-general
mailing list