NewsBlur-viq/utils/kill_celery.sh

11 lines
266 B
Bash
Raw Normal View History

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