From e5d68f8cfdc444791b28cb7b885a07cf62093c76 Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Fri, 27 Sep 2013 12:43:03 -0400 Subject: 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. --- qarsh.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- cgit