aboutsummaryrefslogtreecommitdiff
path: root/contrib/linux/postgres.init.sh
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1998-11-25 02:57:27 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1998-11-25 02:57:27 +0000
commit4d7188039aba7f2b0b5fa8a092025b61e1884c65 (patch)
tree8bd487f3d654dfa8edfaccec1a517718157ecbce /contrib/linux/postgres.init.sh
parent59d9fd9b179f1b1b8c1b4e30303c000ce417ccf2 (diff)
downloadpostgresql-4d7188039aba7f2b0b5fa8a092025b61e1884c65.tar.gz
postgresql-4d7188039aba7f2b0b5fa8a092025b61e1884c65.zip
csh and sh examples were reversed.
Update the csh example with new comments and fixes from Thomas' linux box.
Diffstat (limited to 'contrib/linux/postgres.init.sh')
-rwxr-xr-xcontrib/linux/postgres.init.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/linux/postgres.init.sh b/contrib/linux/postgres.init.sh
index 43da349d27d..ebe9d70c84f 100755
--- a/contrib/linux/postgres.init.sh
+++ b/contrib/linux/postgres.init.sh
@@ -45,11 +45,11 @@ case "$1" in
fi
echo -n "Starting postgres: "
# force full login to get path names
-# my postgres runs CSH/TCSH so use proper syntax in redirection...
+# my postgres runs SH/BASH so use proper syntax in redirection...
if [ ${USE_SYSLOG} = "yes" ]; then
- su - ${PGACCOUNT} -c "(${POSTMASTER} ${PGOPTS} |& logger -p ${FACILITY}.notice) &" > /dev/null&
+ su - ${PGACCOUNT} -c "(${POSTMASTER} ${PGOPTS} 2>&1 | logger -p ${FACILITY}.notice) &" > /dev/null 2>&1 &
else
- su - ${PGACCOUNT} -c "${POSTMASTER} ${PGOPTS} >>&! ${PGLOGFILE} &" > /dev/null&
+ su - ${PGACCOUNT} -c "${POSTMASTER} ${PGOPTS} 2>>&1 ${PGLOGFILE} &" > /dev/null 2>&1 &
fi
sleep 5
pid=`pidof ${POSTMASTER}`