From: <ipe...@hy...> - 2008-06-11 19:41:49
|
Author: iperumal Date: 2008-06-11 12:41:45 -0700 (Wed, 11 Jun 2008) New Revision: 9769 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=9769 Modified: trunk/bin/hq-agent-wrapper.sh Log: HHQ-2104 hq-agent.sh status only shows PID when running agent in Java Service Wrapper -Added status command to the AgentClient when the status() is invoked Modified: trunk/bin/hq-agent-wrapper.sh =================================================================== --- trunk/bin/hq-agent-wrapper.sh 2008-06-11 18:05:05 UTC (rev 9768) +++ trunk/bin/hq-agent-wrapper.sh 2008-06-11 19:41:45 UTC (rev 9769) @@ -187,6 +187,7 @@ PING_CMD="${CLIENT_CMD} ping" SETUP_CMD="${CLIENT_CMD} setup" +STATUS_CMD="${CLIENT_CMD} status" SETUP_IF_NO_PROVIDER_CMD="${CLIENT_CMD} setup-if-no-provider" # ------------- # End HQ specific logic @@ -637,9 +638,11 @@ if [ "X$DETAIL_STATUS" = "X" ] then echo "$APP_LONG_NAME is running (PID:$pid)." + ${STATUS_CMD} else getstatus echo "$APP_LONG_NAME is running (PID:$pid, Wrapper:$STATUS, Java:$JAVASTATUS)" + ${STATUS_CMD} fi exit 0 fi |