|
|
@ -952,7 +952,7 @@ sub configure_pgsql |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Start or restart the daemon? |
|
|
|
# Start or restart the daemon? |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 1, list => { |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { |
|
|
|
's1:running' => $running, |
|
|
|
's1:running' => $running, |
|
|
|
's2:update_postgresql_file' => $update_postgresql_file, |
|
|
|
's2:update_postgresql_file' => $update_postgresql_file, |
|
|
|
's3:update_pg_hba_file' => $update_pg_hba_file, |
|
|
|
's3:update_pg_hba_file' => $update_pg_hba_file, |
|
|
@ -960,12 +960,12 @@ sub configure_pgsql |
|
|
|
if (not $running) |
|
|
|
if (not $running) |
|
|
|
{ |
|
|
|
{ |
|
|
|
# Did we initialize? |
|
|
|
# Did we initialize? |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 1, list => { initialized => $initialized }}); |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { initialized => $initialized }}); |
|
|
|
if ($initialized) |
|
|
|
if ($initialized) |
|
|
|
{ |
|
|
|
{ |
|
|
|
# Start the daemon. |
|
|
|
# Start the daemon. |
|
|
|
my $return_code = $anvil->System->start_daemon({daemon => $anvil->data->{sys}{daemon}{postgresql}}); |
|
|
|
my $return_code = $anvil->System->start_daemon({daemon => $anvil->data->{sys}{daemon}{postgresql}}); |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 1, list => { return_code => $return_code }}); |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { return_code => $return_code }}); |
|
|
|
if ($return_code eq "0") |
|
|
|
if ($return_code eq "0") |
|
|
|
{ |
|
|
|
{ |
|
|
|
# Started the daemon. |
|
|
|
# Started the daemon. |
|
|
@ -983,7 +983,7 @@ sub configure_pgsql |
|
|
|
{ |
|
|
|
{ |
|
|
|
# Reload |
|
|
|
# Reload |
|
|
|
my $return_code = $anvil->System->start_daemon({daemon => $anvil->data->{sys}{daemon}{postgresql}}); |
|
|
|
my $return_code = $anvil->System->start_daemon({daemon => $anvil->data->{sys}{daemon}{postgresql}}); |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 1, list => { return_code => $return_code }}); |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { return_code => $return_code }}); |
|
|
|
if ($return_code eq "0") |
|
|
|
if ($return_code eq "0") |
|
|
|
{ |
|
|
|
{ |
|
|
|
# Reloaded the daemon. |
|
|
|
# Reloaded the daemon. |
|
|
@ -997,7 +997,7 @@ sub configure_pgsql |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Do user and DB checks only if we're made a change above. |
|
|
|
# Do user and DB checks only if we're made a change above. |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 1, list => { |
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { |
|
|
|
's1:initialized' => $initialized, |
|
|
|
's1:initialized' => $initialized, |
|
|
|
's2:update_postgresql_file' => $update_postgresql_file, |
|
|
|
's2:update_postgresql_file' => $update_postgresql_file, |
|
|
|
's3:update_pg_hba_file' => $update_pg_hba_file, |
|
|
|
's3:update_pg_hba_file' => $update_pg_hba_file, |
|
|
|