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
@ -97,7 +97,7 @@ elsif ($cmd eq 'autoconf') {
|
||||
}
|
||||
fail("$logfile unreadable)") unless -r $logfile;
|
||||
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: $!");
|
||||
print "yes";
|
||||
exit(0);
|
||||
|
Loading…
Reference in New Issue
Block a user