CWD=$(pwd);
PIDFILE="$CWD/log/aranea.pid";
-LASTRUNFILE="$CWD/last.run";
+LASTRUNFILE="$CWD/log/last.run";
TORUN="cleanup";
if [ ! -e "$PIDFILE" ]; then
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);
$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);
$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);