From ee8c0983439647a8e652e4a344d3958e01219f92 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Thu, 27 Aug 2009 21:14:30 +0200 Subject: [PATCH] Need to signal ndbot.pl instead of irssi --- lib/NDWeb/Controller/Members.pm | 2 +- scripts/fetchdumps.pl | 2 +- scripts/scans.pl | 2 +- scripts/tick.pl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/NDWeb/Controller/Members.pm b/lib/NDWeb/Controller/Members.pm index a77ec1e..9d7afba 100644 --- a/lib/NDWeb/Controller/Members.pm +++ b/lib/NDWeb/Controller/Members.pm @@ -265,7 +265,7 @@ sub postircrequest : Local { INSERT INTO irc_requests (uid,channel,message) VALUES($1,$2,$3) }); $query->execute($c->user->id,$c->req->param('channel'),$c->req->param('message')); - system 'killall','-USR1', 'irssi'; + system 'killall','-USR1', 'ndbot.pl'; $c->flash(reply => "Msg sent to: ".$c->req->param('channel')); $c->res->redirect($c->uri_for('ircrequest')); diff --git a/scripts/fetchdumps.pl b/scripts/fetchdumps.pl index 0d71aea..6d02704 100755 --- a/scripts/fetchdumps.pl +++ b/scripts/fetchdumps.pl @@ -58,7 +58,7 @@ if ($updated){ `perl $FindBin::Bin/parsegalaxies.pl $updated`; `perl $FindBin::Bin/ndrank.pl`; $dbh->do(q{UPDATE misc SET value = ? WHERE id = 'TICK'}, undef, $updated); - system 'killall','-USR1', 'irssi'; + system 'killall','-USR1', 'ndbot.pl'; local $dbh->{Warn} = 0; } diff --git a/scripts/scans.pl b/scripts/scans.pl index 943ad62..185c76c 100755 --- a/scripts/scans.pl +++ b/scripts/scans.pl @@ -264,7 +264,7 @@ while (my $scan = $newscans->fetchrow_hashref){ #$dbh->rollback; $dbh->commit; -system 'killall','-USR1', 'irssi' if $parsedscans; +system 'killall','-USR1', 'ndbot.pl' if $parsedscans; sub addfleet { my ($name,$mission,$ships,$sender,$tick,$amount) = @_; diff --git a/scripts/tick.pl b/scripts/tick.pl index 232dfc6..cf9f67a 100755 --- a/scripts/tick.pl +++ b/scripts/tick.pl @@ -16,5 +16,5 @@ 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'; +system 'killall','-USR1', 'ndbot.pl'; $dbh->disconnect; -- 2.39.2