From 5e09110558dfa41ff9c3f42314b40699a1888cd5 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Fri, 27 Nov 2015 11:04:48 +0530 Subject: [PATCH] configure logging options on first run --- runtime/functions | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/functions b/runtime/functions index f12413c..c071280 100755 --- a/runtime/functions +++ b/runtime/functions @@ -226,6 +226,10 @@ initialize_database() { # configure path to data_directory set_postgresql_param "data_directory" "${PG_DATADIR}" + # configure logging + set_postgresql_param "log_directory" "${PG_LOGDIR}" + set_postgresql_param "log_filename" "postgresql-${PG_VERSION}-main.log" + # listen on all interfaces set_postgresql_param "listen_addresses" "*"