diff --git a/docs/gotcha.txt b/docs/gotcha.txt index a6b70c879..08710d204 100644 --- a/docs/gotcha.txt +++ b/docs/gotcha.txt @@ -47,14 +47,10 @@ save you many hours of grief. # The location of the file that keeps track of the master spectre # processId. -"pidFile" : "/data/wre/var/logs/spectre.pid", +"pidFile" : "/var/run/spectre.pid", ##Or some other location - After installing this version, you will need to manually kill - spectre: - - killall spectre.pl - - before starting it again. + After installing this version, you should manually kill spectre and + then modify the spectre.conf file to add the pidFile directive. * The Default Gallery Album View Thumbnails template has been reworked to get rid of intermittent rendering bugs with IE7. The thumbnail diff --git a/sbin/spectre.pl b/sbin/spectre.pl index 1bdf3d10c..2d379dfa3 100755 --- a/sbin/spectre.pl +++ b/sbin/spectre.pl @@ -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()) {