#! /bin/sh

. "`dirname $0`/rcdefs"

case "$1" in
  start)
    Print -n "Starting postmaster... "
    rm -f /tmp/.s.PGSQL.*
    su - postgres -c \
    	"${PG_BIN}/postmaster ${PG_OPTIONS} &"
    Print "done."
    ;;
  stop)
    Print -n "Stopping postmaster... "
    Terminate postmaster
    Print "done."
    ;;
  *)
    Usage "$0"
    exit 1
esac

exit 0
