#! /bin/sh

# Start PostgreSQL server (postmaster) with local TCP/IP sockets enabled.

# Home directory for Pathena files is changed in this script
# by invoking script 'build/relocate'.

export PATHENA=~/.pathena

if [ -e $PATHENA/config/definitions ];
    then DEFS=config ;
    else DEFS=bin ;
fi
source $PATHENA/$DEFS/definitions

cd $PATHENA

# Start postmaster with nohup so it survives logouts.

source $PATHENA/bin/pg_startup
