b528647b | #!/bin/bash # |
db8a5c09 | APP_PATH="/home/$USER/bin" LOG_PATH="/home/$USER/log" |
b528647b | PROCESS_ID="$(ps x | awk '/[r]admonAgent.py/{print $1}')" |
66d7b126 | |
b528647b | if [ -n "$PROCESS_ID" ]; then |
66d7b126 | if [ "$1" != "-q" ]; then printf "radmon agent running [%s]\n" $PROCESS_ID fi |
b528647b | else |
66d7b126 | printf "starting up radmon agent\n" cd $APP_PATH |
db8a5c09 | ./radmonAgent.py -t 10 -u 'http://73.157.139.23:4371' >> $LOG_PATH/radmonAgent.log 2>&1 & |
b528647b | fi |