1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

csh and sh examples were reversed.

Update the csh example with new comments and fixes from Thomas' linux box.
This commit is contained in:
Thomas G. Lockhart
1998-11-25 02:57:27 +00:00
parent 59d9fd9b17
commit 4d7188039a
2 changed files with 26 additions and 10 deletions

View File

@ -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}`