mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-06-29 00:22:16 +08:00
start: launch postgresql server using start-stop-daemon
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user