1234567891011121314151617 |
- #!/bin/sh
- echo "Shutting down Monitor"
- pid_list="$(ps aux | grep ipfcst-monitor | grep -v grep | awk '{print $2}')"
- if test -z $pid_list ; then
- echo "Monitor is not running"
- else
- for pid in $pid_list;
- do
- if kill -0 "$pid" 2>/dev/null; then
- echo "kill pid $pid"
- kill -9 $pid
- fi
- done
- fi
- exit 0
|