Thread: Problems with starting/stoping Postmaster if homedir is not available

Problems with starting/stoping Postmaster if homedir is not available

From
"Marco Lechner"
Date:
Hi list,

we found a problem on our postmaster-service. If we try to
stop the postmaster-service with:
  su - $PGUSER -c "$PGCTL stop -D '$PGDATA' -s -m fast"
  echo "ok"
  ;;
via a startup/stop-script. Our Server hangs if the $PGUSERs
homedir is not available. This could happen because our
homedir is mounted via NFS and is exported from a different
Server.
Does anybody know how to start/stop the Service in abetter
way? We know that it must be possible (because it works
with the mysql-Service) but there the problem is solved
with a servicebinary wich reads a special-conf file (don't
know how this binary handles the $USER Variable if not
using "su".

Marco