From b0102f69e70c9ed36561d079a75115da70004704 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Sat, 11 Jul 2015 21:49:20 +0530 Subject: [PATCH] start: launch postgresql server using `start-stop-daemon` --- start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start b/start index 220dcdb..4ed24b9 100755 --- a/start +++ b/start @@ -221,5 +221,5 @@ if [ "${PSQL_MODE}" == "standalone" ] || [ "${PSQL_MODE}" == "master" ]; then fi echo "Starting PostgreSQL server..." -exec gosu postgres ${PG_BINDIR}/postgres \ +exec start-stop-daemon --start --chuid postgres:postgres --exec ${PG_BINDIR}/postgres -- \ -D ${PG_DATADIR} -c config_file=${PG_CONFDIR}/postgresql.conf