Search:
Login
Preferences
Help/Guide
About Trac
Wiki
Timeline
Roadmap
View Tickets
Search
Context Navigation
Back to keepalived
keepalived
: stop_notifyFile_3.sh
File stop_notifyFile_3.sh,
257 bytes
(added by
krit
,
2 years ago
)
Line
1
#!/bin/sh
2
3
pid=`ps ax | grep '[b]in/sh /home/ubuntu/notifyFile_3.sh' | awk '{ print $1 }'`
4
echo $pid
5
if [ "$pid" = "" ];then
6
echo "not running"
7
else
8
echo "notifyFile_3.sh is running and will be killed"
9
kill -9 $pid
10
echo "kill pid $pid"
11
fi
12
Download in other formats:
Original Format