|
|
|
@ -57,7 +57,7 @@ if (not $local_uuid) |
|
|
|
|
if ($local_uuid) |
|
|
|
|
{ |
|
|
|
|
# Start checks |
|
|
|
|
my $running = $anvil->System->check_daemon({daemon => $anvil->data->{service}{postgresql}}); |
|
|
|
|
my $running = $anvil->System->check_daemon({daemon => $anvil->data->{sys}{service}{postgresql}}); |
|
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 3, list => { running => $running }}); |
|
|
|
|
if ($running eq "2") |
|
|
|
|
{ |
|
|
|
@ -189,7 +189,7 @@ if ($local_uuid) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Start the daemon. '0' = started, anything else is a problem. |
|
|
|
|
my $return_code = $anvil->System->start_daemon({daemon => $anvil->data->{service}{postgresql}}); |
|
|
|
|
my $return_code = $anvil->System->start_daemon({daemon => $anvil->data->{sys}{service}{postgresql}}); |
|
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { return_code => $return_code }}); |
|
|
|
|
if ($return_code eq "0") |
|
|
|
|
{ |
|
|
|
@ -197,7 +197,7 @@ if ($local_uuid) |
|
|
|
|
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "log_0059"}); |
|
|
|
|
|
|
|
|
|
# Make sure it is enabled on boot. |
|
|
|
|
my $return_code = $anvil->System->enable_daemon({daemon => $anvil->data->{service}{postgresql}}); |
|
|
|
|
my $return_code = $anvil->System->enable_daemon({daemon => $anvil->data->{sys}{service}{postgresql}}); |
|
|
|
|
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { return_code => $return_code }}); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|