summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/postgresql/files/postgres')
-rwxr-xr-xdev-db/postgresql/files/postgres3
1 files changed, 1 insertions, 2 deletions
diff --git a/dev-db/postgresql/files/postgres b/dev-db/postgresql/files/postgres
index f8f047c19f12..9968708984de 100755
--- a/dev-db/postgresql/files/postgres
+++ b/dev-db/postgresql/files/postgres
@@ -25,7 +25,7 @@ start() {
einfo "Starting ${SERVICE}.."
if [ "${USE_SYSLOG}" = "yes" ]
then
- su - ${PGUSER} -c "${EXE} ${PGOPTS} -p ${PGPORT} 2>&1" | logger -p ${FACILITY}.notice 1>&2 &
+ sudo -u ${PGUSER} "${EXE} ${PGOPTS} -p ${PGPORT} 2>&1" | logger -p ${FACILITY}.notice 1>&2 &
fi
eend $? "Error starting ${SERVICE}."
}
@@ -43,4 +43,3 @@ restart() {
doservice ${@}
-