arednsig/aredn_fw_3_19_3_0/bin/ardstop
e500c96f
 #!/bin/bash
 # Stop the radmon agent process and clean up environment.
 
 
 AGENT_NAME="[a]rednsigAgent.py"
 
 PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')"
 
 if [ -n "$PROCESS_ID" ]; then
   printf "killing arednsig agent [%s]\n" $PROCESS_ID
   kill $PROCESS_ID
 else
   echo arednsig agent not running
 fi