]> ruin.nu Git - ndwebbie.git/blobdiff - scripts/tick.pl
No real need to vacuum every tick, autovacuum works fine
[ndwebbie.git] / scripts / tick.pl
index 6b97aa125445f78c3af359ff7c3f36d7a4a798a3..232dfc6797f7bf63bcb0dc319981fabe6f7a95f2 100755 (executable)
@@ -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;