Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
uzulla committed Dec 20, 2015
1 parent 9b1c7fe commit d977cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions watcher.pl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
while(1){
my $response = eval {
local $SIG{ALRM} = sub { die HTTP::Response->new(408, "got alarm, read timeout.") };
alarm 10;
alarm 30;
my $res = $ua->get($YANCHA_URL);
alarm 0;
$res;
Expand All @@ -30,7 +30,7 @@
# must restart
`nohup ./start.sh >> start.sh.log 2>&1 &`;
}
sleep 10;
sleep 30;
}

=pod
Expand Down

0 comments on commit d977cb4

Please sign in to comment.