# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: guest.init,v 1.12 2006/04/04 22:09:47 mlhuang Exp $
+# $Id: api,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
#
# Source function library and configuration
. /etc/plc.d/functions
+# Export so that we do not have to specify -p to psql invocations
+export PGPORT=$PLC_DB_PORT
+
case "$1" in
start)
if [ "$PLC_API_ENABLED" != "1" ] ; then