getcwd failing suddenly - Mailing list pgsql-hackers

From D'Arcy" "J.M." Cain
Subject getcwd failing suddenly
Date
Msg-id m103gbL-0000bnC@druid.net
Whole thread Raw
Responses Re: [HACKERS] getcwd failing suddenly
List pgsql-hackers
Recently I have started seeing this error when starting the server.

shell-init: could not get current directory: getcwd: cannot access parent directories

Here is the command I use to start PostgreSQL.

su postgres -c "/usr/local/pgsql/bin/postmaster -S -D /usr/local/pgsql/data"

Did something change recently to cause this?  I find I can get around it
by changing the command to the following.

su postgres -c "cd /usr/local/pgsql; /usr/local/pgsql/bin/postmaster -S -D /usr/local/pgsql/data"

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date:

Previous
From: Oleg Broytmann
Date:
Subject: Re: [HACKERS] GROUP BY / ORDER BY string is very slow
Next
From: Oleg Broytmann
Date:
Subject: SET encoding