diff --git a/sbin/spectre.pl b/sbin/spectre.pl index 893f5ba6e..2781ff067 100755 --- a/sbin/spectre.pl +++ b/sbin/spectre.pl @@ -74,10 +74,10 @@ if ($shutdown) { die "No pidFile specified in spectre.conf\n"; } open my $pidFile, '<', $pidFileName or - die "Unable to open pidFile ($pidFileName) for writing: $!\n"; + die "Unable to open pidFile ($pidFileName) for reading: $!\n"; my $spectrePid = <$pidFile>; close $pidFile or - die "Unable to close pidFile ($pidFileName) after writing: $!\n"; + die "Unable to close pidFile ($pidFileName) after reading: $!\n"; chomp $spectrePid; kill 15, $spectrePid; sleep 1;