start: use gosu to launch the daemon

This commit is contained in:
Sameer Naik
2015-06-04 10:50:19 +05:30
parent ed45b2b3f1
commit 353b4b1bc7
+1 -1
View File
@@ -136,5 +136,5 @@ if [ -n "${DB_NAME}" ]; then
fi
echo "Starting PostgreSQL server..."
exec sudo -u postgres -H ${PG_BINDIR}/postgres \
exec gosu postgres ${PG_BINDIR}/postgres \
-D ${PG_DATADIR} -c config_file=${PG_CONFDIR}/postgresql.conf