Define what I want the user to do in the gotcha's file, and in the spectre error messages.
This commit is contained in:
parent
5a9f9f486e
commit
d0dd47a5a4
2 changed files with 5 additions and 9 deletions
|
|
@ -71,7 +71,7 @@ if ($shutdown) {
|
|||
local $/;
|
||||
my $pidFileName = $config->get('pidFile');
|
||||
if (! $pidFileName) {
|
||||
warn "No pidFile specified in spectre.conf, trying /var/run/spectre.pid\n";
|
||||
warn "No pidFile specified in spectre.conf; please add one. Trying /var/run/spectre.pid instead.\n";
|
||||
$pidFileName = '/var/run/spectre.pid';
|
||||
}
|
||||
open my $pidFile, '<', $pidFileName or
|
||||
|
|
@ -104,7 +104,7 @@ elsif ($daemon) {
|
|||
my $pidFileName = $config->get('pidFile');
|
||||
##Write the PID file
|
||||
if (! $pidFileName) {
|
||||
warn "No pidFile specified in spectre.conf. Trying /var/run/spectre.pid instead\n";
|
||||
warn "No pidFile specified in spectre.conf; please add one. Trying /var/run/spectre.pid instead.\n";
|
||||
$pidFileName = '/var/run/spectre.pid';
|
||||
}
|
||||
if (!ping()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue