43389052 | #!/bin/bash # # The monitor url can look something like http://192.168.1.155, or # something linke http://radiationMonitor.domain.com depending on # whether your local network uses a domain name server. # APP_PATH="/home/$USER/bin" LOG_PATH="/home/$USER/log" |
f1d29d08 | #AGENT_NAME="[a]rednsigAgent.py" #NODE_URL="http://localnode:8080/cgi-bin/signal.json" AGENT_NAME="[a]rednsigAgent.py" NODE_URL="http://192.168.1.30:8080/cgi-bin/signal.json" #AGENT_NAME="[a]rednsigMirrorAgent.py" #NODE_URL="http://73.157.139.23:7361/arednsig/dynamic/arednsigOutputData.js" POLLING_INTERVAL="60" |
43389052 | PROCESS_ID="$(ps x | awk -v a=$AGENT_NAME '$7 ~ a {print $1}')" if [ -n "$PROCESS_ID" ]; then if [ "$1" != "-q" ]; then printf "arednsig agent running [%s]\n" $PROCESS_ID fi else printf "starting up arednsig agent\n" cd $APP_PATH |
f1d29d08 | $(./$AGENT_NAME -u $NODE_URL -p $POLLING_INTERVAL >> \ $LOG_PATH/arednsigAgent.log 2>&1 &) |
43389052 | fi |