mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
distinguish between open and close for pipe error messages
This commit is contained in:
parent
7fdf0482fa
commit
b1c0367027
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ elsif ($cmd eq 'autoconf') {
|
||||||
}
|
}
|
||||||
fail("$logfile unreadable)") unless -r $logfile;
|
fail("$logfile unreadable)") unless -r $logfile;
|
||||||
fail("$configfile unreadable") unless -r $configfile;
|
fail("$configfile unreadable") unless -r $configfile;
|
||||||
open(my $status, "relayctl show summary|") or fail("cannot run relayctl: $!");
|
open(my $status, "relayctl show summary|") or fail("cannot open relayctl pipe: $!");
|
||||||
close($status) or fail("cannot run relayctl: $!");
|
close($status) or fail("cannot run relayctl: $!");
|
||||||
print "yes";
|
print "yes";
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
Loading…
Reference in a new issue