From: Banana Date: Mon, 11 Nov 2024 15:50:45 +0000 (+0100) Subject: moved last.run file X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=085085f80b96b28233d6027380b57a7d2ffab525;p=aranea.git moved last.run file Signed-off-by: Banana --- diff --git a/crawler/aranea-runner b/crawler/aranea-runner index 7928acb..c5cc4f1 100755 --- a/crawler/aranea-runner +++ b/crawler/aranea-runner @@ -30,7 +30,7 @@ COMMANDS["cleanup"]="fetch.pl" CWD=$(pwd); PIDFILE="$CWD/log/aranea.pid"; -LASTRUNFILE="$CWD/last.run"; +LASTRUNFILE="$CWD/log/last.run"; TORUN="cleanup"; if [ ! -e "$PIDFILE" ]; then diff --git a/crawler/cleanup.pl b/crawler/cleanup.pl index 41286c5..2b7a893 100644 --- a/crawler/cleanup.pl +++ b/crawler/cleanup.pl @@ -143,7 +143,7 @@ sayYellow "Remove invalid urls done"; addToStats($dbh, "cleanup"); # write itself to the last run file -open(my $fh, '>:encoding(UTF-8)', "last.run") or die "Could not open file 'last.run' $!"; +open(my $fh, '>:encoding(UTF-8)', "log/last.run") or die "Could not open file 'log/last.run' $!"; print $fh "cleanup"; close($fh); diff --git a/crawler/fetch.pl b/crawler/fetch.pl index 72a334b..c0b2bbc 100644 --- a/crawler/fetch.pl +++ b/crawler/fetch.pl @@ -152,7 +152,7 @@ addToStats($dbh, 'fetchsuccess', $allFetched, $allFetched); $dbh->commit(); # write itself to the last run file -open(my $fh, '>:encoding(UTF-8)', "last.run") or die "Could not open file 'last.run' $!"; +open(my $fh, '>:encoding(UTF-8)', "log/last.run") or die "Could not open file 'log/last.run' $!"; print $fh "fetch"; close($fh); diff --git a/crawler/parse-results.pl b/crawler/parse-results.pl index 8c97a14..47d217a 100644 --- a/crawler/parse-results.pl +++ b/crawler/parse-results.pl @@ -137,7 +137,7 @@ addToStats($dbh, 'parse'); $dbh->commit(); # write itself to the last run file -open(my $fh, '>:encoding(UTF-8)', "last.run") or die "Could not open file 'last.run' $!"; +open(my $fh, '>:encoding(UTF-8)', "log/last.run") or die "Could not open file 'log/last.run' $!"; print $fh "parse"; close($fh);