From da822e89fbbf6be80e34aa3fd0059b3076b8a729 Mon Sep 17 00:00:00 2001 From: KIMURA Kazunori Date: Thu, 16 Apr 2026 00:15:27 +0900 Subject: [PATCH] Redirect output of pg_ctl to file in PG_LOGDIR instead of /dev/null --- runtime/functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/functions b/runtime/functions index f06b825..2217c9f 100755 --- a/runtime/functions +++ b/runtime/functions @@ -438,14 +438,14 @@ configure_postgresql() { # start postgres server internally for the creation of users and databases rm -rf ${PG_DATADIR}/postmaster.pid set_postgresql_param "listen_addresses" "127.0.0.1" quiet - exec_as_postgres ${PG_BINDIR}/pg_ctl -D ${PG_DATADIR} -w start >/dev/null + exec_as_postgres ${PG_BINDIR}/pg_ctl -D ${PG_DATADIR} -w start >> "${PG_LOGDIR}/postgresql-${PG_VERSION}-internal.log" create_user create_database create_replication_user # stop the postgres server - exec_as_postgres ${PG_BINDIR}/pg_ctl -D ${PG_DATADIR} -w stop >/dev/null + exec_as_postgres ${PG_BINDIR}/pg_ctl -D ${PG_DATADIR} -w stop >> "${PG_LOGDIR}/postgresql-${PG_VERSION}-internal.log" # listen on all interfaces set_postgresql_param "listen_addresses" "*" quiet