summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-09-27 12:43:03 -0400
committerNathan Straz <nstraz@redhat.com>2013-10-02 14:11:33 -0400
commite5d68f8cfdc444791b28cb7b885a07cf62093c76 (patch)
treeffa31af74126ba4f23d635325d1ad5757c101e68
parent044bfc699f1ced1ed03bcee6855a4752ab76ef01 (diff)
downloadqarsh-e5d68f8cfdc444791b28cb7b885a07cf62093c76.tar.gz
qarsh-e5d68f8cfdc444791b28cb7b885a07cf62093c76.tar.xz
qarsh-e5d68f8cfdc444791b28cb7b885a07cf62093c76.zip
Add a warning in qarsh about btimed
If we don't get a heart beat when qarsh starts, print a warning to check on the btimed service. Commands could be stopped early if it doesn't produce any output and qarsh thinks the host is down.
-rw-r--r--qarsh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/qarsh.c b/qarsh.c
index bcfcf5c..58f449c 100644
--- a/qarsh.c
+++ b/qarsh.c
@@ -235,6 +235,9 @@ run_remote_cmd(char *cmdline)
}
hbeat(qarsh_hb);
+ if (hbeat_getstate(qarsh_hb) == HOST_QUIET) {
+ fprintf(stderr, "WARNING: Heartbeat did not respond at start of command. Check btimed service on remote host\n");
+ }
cmd_finished = 0;
for (;;) {
if (cmd_finished) {