I've wondered why changing of the config file in /etc/conf.d/postgresql have no effect on starting of PostgreSQL. I ever became the message: can't change to directory "/var/lib/postgresql". I've found the solution of the problem: The lines in "start", "stop" and "restart" begins with: su - $PGUSER -c "/usr/bin/pg_ctl start -D '$PGDATA'... It doesn't shall read "su - $PGUSER", because su can't change to $PGUSER. The command is invalid and pg_ctl starts with default parameters. The line must only begin with: su $PGUSER.... !!!!!!!!!!!!!!!!!!!!!!!!!!
It looks fine at the moment. If there is still any problem, please reopen this bug.