start: launch postgresql server using start-stop-daemon

This commit is contained in:
Sameer Naik
2015-07-11 21:49:20 +05:30
parent f0c4e38261
commit b0102f69e7
+1 -1
View File
@@ -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