X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Ftick.pl;h=c31606058b1cd11677afad5c23a4ce7736d26978;hb=36a13cae169413fc04fbf704d94a2ad797336e6e;hp=6b97aa125445f78c3af359ff7c3f36d7a4a798a3;hpb=8ce23c2d82afd4382c05a8bdc81e850a1fb16346;p=ndwebbie.git diff --git a/scripts/tick.pl b/scripts/tick.pl index 6b97aa1..c316060 100755 --- a/scripts/tick.pl +++ b/scripts/tick.pl @@ -2,16 +2,18 @@ use strict; use warnings; +use local::lib; use DBI; use DBD::Pg qw(:pg_types); -use LWP::Simple; +use FindBin; +use lib "$FindBin::Bin/../lib"; -use lib qw{/var/www/ndawn/}; use ND::DB; our $dbh = ND::DB::DB(); my $update = $dbh->prepare("UPDATE misc SET value = value::int + 1 WHERE id = 'TICK'"); $update->execute(); +system 'killall','-USR1', 'ndbot.pl'; $dbh->disconnect;