X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=scripts%2Ftick.pl;h=232dfc6797f7bf63bcb0dc319981fabe6f7a95f2;hb=fcd1ee7b280d01a082b3a868a56145f970251f5d;hp=6b97aa125445f78c3af359ff7c3f36d7a4a798a3;hpb=83be73d01437ba9841257bb9064314d63fab9487;p=ndwebbie.git diff --git a/scripts/tick.pl b/scripts/tick.pl index 6b97aa1..232dfc6 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', 'irssi'; $dbh->disconnect;