From e63c27dac0ca039b67e284235df8238bd0012cfc Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Wed, 21 Sep 2011 16:18:29 +0000 Subject: * switch from speedy to fastcgi * improved installation, no file editing required anymore * update installation instructions --- lib/Smokeping.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Smokeping.pm') diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index c725005..293cdba 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -3766,7 +3766,7 @@ sub daemonize_me ($) { sub load_cfg ($;$) { my $cfgfile = shift; my $noinit = shift; - my $cfmod = (stat $cfgfile)[9] || die "ERROR: calling stat on $cfgfile: $!\n"; + my $cfmod = (stat $cfgfile)[9] || die "ERROR: loading smokeping configuration file $cfgfile: $!\n"; # when running under speedy this will prevent reloading on every run # if cfgfile has been modified we will still run. if (not defined $cfg or not defined $probes # or $cfg->{__last} < $cfmod @@ -3892,12 +3892,12 @@ ${e}cut POD } -sub cgi ($) { +sub cgi ($$) { my $cfgfile = shift; + my $q = shift; $cgimode = 'yes'; umask 022; load_cfg $cfgfile; - my $q=new CGI; initialize_cgilog(); if ($q->param(-name=>'slave')) { # a slave is calling in Smokeping::Master::answer_slave($cfg,$q); -- cgit v1.2.3-24-g4f1b