2
0
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:
Antoine Beaupré 2012-03-09 19:24:50 -05:00
parent 7fdf0482fa
commit b1c0367027

View File

@ -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);