watchdog_small.sh 293 B

12345678910111213141516
  1. #!/bin/bash
  2. exec_name=$1
  3. echo "Watchdog started! pid " $exec_name
  4. sleep 12m
  5. echo "Watchdog expired! Killing"
  6. #./killit $exec_name
  7. #./killit my_rtrm_power
  8. pssh -P -h allhosts -p 48 -t -1 /shared/herc/killcorePIDs $exec_name < /dev/null
  9. kill_pid=$!
  10. #echo "i come here"
  11. sleep 2
  12. wait $kill_pid