keepalived: stop_notifyFile_3.sh

File stop_notifyFile_3.sh, 257 bytes (added by krit, 2 years ago)
Line 
1#!/bin/sh
2
3pid=`ps ax | grep '[b]in/sh /home/ubuntu/notifyFile_3.sh' | awk '{ print $1 }'`
4echo $pid
5if [ "$pid" = "" ];then
6    echo "not running"
7else
8    echo "notifyFile_3.sh is  running and will be killed"
9    kill -9 $pid
10    echo "kill pid $pid"
11fi
12