Hi,
I am seeing something odd when trying to start up the postgresql service (for the first time) on my RHEL6.7 box. When I try to start it using either
Code:
service postgresql start
or
Code:
/etc/init.d/postgresql start
, it fails.
In an attempt to find out what was failing in the script I ran
Code:
bash -x /etc/init.d/postgresql start
, and it worked! WTF? I am at a loss as to how this would make a difference, but it does. I can then stop the service normally, but then cannot start again unless I use bash -x...
Does anyone know why this would be? Obviously starting up postgres like this is not a solution.....
Oh, nearly forgot...When starting without bash -x I get the following (not verbatim) in my pgstartup.log:
postmaster is unable to open /home/pgsql/data/postgresql.conf: permission denied. I checked permissions and all look ok and of course postmaster has no problems reading this file when running the service with bash -x.....???
Thanks!