You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/bin/bash
- PID=`ps -ef | grep /usr/bin/python | grep server.py | awk '{print \$2}'`
- echo "ps -ef | grep /usr/bin/python | grep server.py | awk '{print \$2}'";
- echo "KILL PID: $PID";
- if [ "$PID"x != ""x ]; then
- kill -9 $PID
- if [ $? -eq 0 ]; then
- echo "Kill $1 SUCCESS"
- else
- echo "Kill $1 FAILED"
- exit 1;
- fi
- fi
-
-
|