Define what I want the user to do in the gotcha's file, and in the spectre error messages.

This commit is contained in:
Colin Kuskie 2009-08-24 23:05:13 +00:00
parent 5a9f9f486e
commit d0dd47a5a4
2 changed files with 5 additions and 9 deletions

View file

@ -47,14 +47,10 @@ save you many hours of grief.
# The location of the file that keeps track of the master spectre # The location of the file that keeps track of the master spectre
# processId. # 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 After installing this version, you should manually kill spectre and
spectre: then modify the spectre.conf file to add the pidFile directive.
killall spectre.pl
before starting it again.
* The Default Gallery Album View Thumbnails template has been reworked * The Default Gallery Album View Thumbnails template has been reworked
to get rid of intermittent rendering bugs with IE7. The thumbnail to get rid of intermittent rendering bugs with IE7. The thumbnail

View file

@ -71,7 +71,7 @@ if ($shutdown) {
local $/; local $/;
my $pidFileName = $config->get('pidFile'); my $pidFileName = $config->get('pidFile');
if (! $pidFileName) { 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'; $pidFileName = '/var/run/spectre.pid';
} }
open my $pidFile, '<', $pidFileName or open my $pidFile, '<', $pidFileName or
@ -104,7 +104,7 @@ elsif ($daemon) {
my $pidFileName = $config->get('pidFile'); my $pidFileName = $config->get('pidFile');
##Write the PID file ##Write the PID file
if (! $pidFileName) { 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'; $pidFileName = '/var/run/spectre.pid';
} }
if (!ping()) { if (!ping()) {