X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Ftick.pl;h=cf9f67a601b005b9e76ffc07f13ef6f0946d462b;hb=ee8c0983439647a8e652e4a344d3958e01219f92;hp=6b97aa125445f78c3af359ff7c3f36d7a4a798a3;hpb=9154d589bf4a0dc3310ee79752c71674f69c85a7;p=ndwebbie.git diff --git a/scripts/tick.pl b/scripts/tick.pl index 6b97aa1..cf9f67a 100755 --- a/scripts/tick.pl +++ b/scripts/tick.pl @@ -7,11 +7,14 @@ use DBD::Pg qw(:pg_types); use LWP::Simple; -use lib qw{/var/www/ndawn/}; +use FindBin; +use lib "$FindBin::Bin/../lib"; + 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;