git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
00486e6
)
- set PGPORT
author
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 10 Apr 2006 16:00:47 +0000
(16:00 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Mon, 10 Apr 2006 16:00:47 +0000
(16:00 +0000)
plc.d/api
patch
|
blob
|
history
diff --git
a/plc.d/api
b/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
#
# 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
#
# 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
case "$1" in
start)
if [ "$PLC_API_ENABLED" != "1" ] ; then