Attached is an improved patch.
1. It parses unix_socket_directory out from PostgreSQL configuration
file and used its value as a default value of OCF_RESKEY_socketdir.
(Perl is used for that)
2. It creates OCF_RESKEY_socketdir if it doesn't exist otherwise
checks if PostgreSQL DBA use can create
That was I though to do with one exception:
check_socket_dir() {
if [ ! -d "$1" ]
then
mkdir
chmod
chown
else
if ! touch $OCF_RESKEY_socketdir/test_file
then
ocf_log err "Can't create files in $OCF_RESKEY_socketd
On Wed, Jun 23, 2010 at 02:07:09PM +0200, Lars Ellenberg wrote:
> On Tue, Jun 22, 2010 at 10:05:10AM -0600, Serge Dubrouski wrote:
> > Yes it is possible to parse it from postgresql.conf of from provided
> > config file.
>
> Then that should be done, IMO.
> Otherwise it has to be changed in two pl