- set PGPORT
authorMark Huang <mlhuang@cs.princeton.edu>
Mon, 10 Apr 2006 16:00:47 +0000 (16:00 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Mon, 10 Apr 2006 16:00:47 +0000 (16:00 +0000)
plc.d/api

index ab09812..ecbcdef 100755 (executable)
--- a/plc.d/api
+++ b/plc.d/api
@@ -7,12 +7,15 @@
 # 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