Revert commit 66c0185a3 and follow-on patches.
[pgsql.git] / contrib / start-scripts / macos / postgres-wrapper.sh
blob3a4ebdaf0fb111f06b4b0cdb76ac217ff114d116
1 #!/bin/sh
3 # PostgreSQL server start script (launched by org.postgresql.postgres.plist)
5 # edit these as needed:
7 # directory containing postgres executable:
8 PGBINDIR="/usr/local/pgsql/bin"
9 # data directory:
10 PGDATA="/usr/local/pgsql/data"
11 # file to receive postmaster's initial log messages:
12 PGLOGFILE="${PGDATA}/pgstart.log"
14 # (it's recommendable to enable the Postgres logging_collector feature
15 # so that PGLOGFILE doesn't grow without bound)
18 # set umask to ensure PGLOGFILE is not created world-readable
19 umask 077
21 # wait for networking to be up (else server may not bind to desired ports)
22 /usr/sbin/ipconfig waitall
24 # and launch the server
25 exec "$PGBINDIR"/postgres -D "$PGDATA" >>"$PGLOGFILE" 2>&1