From 353b4b1bc79ceb83e565d5c231c6b0657ee8d381 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Thu, 4 Jun 2015 10:50:19 +0530 Subject: [PATCH] start: use `gosu` to launch the daemon --- start | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start b/start index 98ba492..7fb6010 100755 --- a/start +++ b/start @@ -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