b528647b | #!/bin/bash |
e7812e8c | # Stop the radmon agent process. |
b528647b | |
e7812e8c | AGENT_NAME="[r]admonAgent.py" PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" |
207514f1 | |
b528647b | if [ -n "$PROCESS_ID" ]; then printf "killing radmon agent [%s]\n" $PROCESS_ID kill $PROCESS_ID else echo radmon agent not running fi |