X-Git-Url: http://git.ieval.ro/?p=gruntmaster-daemon.git;a=blobdiff_plain;f=lib%2FGruntmaster%2FDaemon.pm;h=78b39e4c3f3ee6ad29328b3303db1907c78f658d;hp=6991b7a00a2481fa67971c225bacaf308dda20e1;hb=7ddb70a9176040416f7a4624c98d205cd224c5a8;hpb=95ea982c47736f78aa3d4c95b64907a917494ec0 diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index 6991b7a..78b39e4 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -132,6 +132,7 @@ sub process{ my $log = $meta->{contest} ? "ct/$meta->{contest}/log" : 'log'; PUBLISH gensrc => $job; PUBLISH genpage => "$log/job/$job.html"; + PUBLISH genpage => "$log/index.html"; my $page = ($job + Gruntmaster::Page::Log::PAGE_SIZE - 1) / Gruntmaster::Page::Log::PAGE_SIZE; PUBLISH genpage => "$log/$page.html" } @@ -149,7 +150,7 @@ sub got_job{ } sub run{ - Log::Log4perl->init('/etc/gruntmasterd-log.conf'); + Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf'); get_logger->info("gruntmasterd $VERSION started"); chdir tempdir 'gruntmasterd.XXXX', CLEANUP => 1, TMPDIR => 1; SUBSCRIBE jobs => \&got_job;