diff --git a/plugins/relayd/relayd b/plugins/relayd/relayd index 100d987c..34ffbd6b 100755 --- a/plugins/relayd/relayd +++ b/plugins/relayd/relayd @@ -107,9 +107,9 @@ my (%avail, %down); my $pos = undef; ($pos) = restore_state(); -$po = 0 unless defined($pos); +$pos = 0 unless defined($pos); -($log,$reset) = tail_open($logfile,$pos); +my ($log,$reset) = tail_open($logfile,$pos); #open(my $log, "$logtail -f $logfile -o $offsetfile |") or die("cannot open $logfile: $!"); #open(my $log, "tail -100 $logfile |") or die("cannot open $logfile: $!"); while (<$log>) {