NewsBlur-viq/utils/kill_celery.sh

14 lines
301 B
Bash
Raw Normal View History

2011-03-25 10:44:46 -04:00
#!/bin/sh
2012-12-21 18:22:26 -08:00
# 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
2018-04-18 10:47:53 -07:00
# ps aux | grep celery | egrep -v grep | awk '{print $2}' | xargs kill -9
pkill -9 -f celery