[Pgpool-general] Changing the default location of configuration files while building pgpool-II

Tatsuo Ishii ishii at sraoss.co.jp
Tue Mar 15 22:40:37 UTC 2011


> We can use the options but we do not want to display the path that belongs to 
> our build machine and that does exist on the target machine. 
> 
> 
> 
> Is it possible to fix this?

You could wrap pgpool in shell script and you pass environment
variable which points to whatever location you like to place the conf
file. Then the shell script reads the variable and conver it to -f
option of pgpool.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

> Sandeep.
> 
> 
> 
> 
> ________________________________
> From: Guillaume Lelarge <guillaume at lelarge.info>
> To: Sandeep Thakkar <sandeeptt at yahoo.com>
> Cc: pgpool-general at pgfoundry.org
> Sent: Tue, March 15, 2011 6:47:59 PM
> Subject: Re: [Pgpool-general] Changing the default location of configuration 
> files while building pgpool-II
> 
> Le 15/03/2011 14:08, Sandeep Thakkar a écrit :
>> I think, the default path should be the relative path from where the binary 
>> exists. So, it should be "../etc/pgpool.conf". Can we do it? We use pgpool-II 
>> 3.0.3 sources.
>> 
> 
> Why don't you use the -f option to specify your configuration file location?
> 
> 
> -- 
> Guillaume
> http://www.postgresql.fr
> http://dalibo.com
> 
> 
> 
>       


More information about the Pgpool-general mailing list