NewsBlur/utils/kill_gunicorn.sh

11 lines
270 B
Bash
Raw Normal View History

#!/bin/sh
for i in `ps -o pid,command ax | grep gunicorn | awk '!/awk/ && !/grep/ {print $1}'`
do
if [ "${i}" != "" ]; then
print "Killing: ${i}";
kill -9 ${i};
fi
done
# ps aux | grep gunicorn | egrep -v grep | awk '{print $2}' | xargs kill -9