# $1 — часть имени процесса
procname="$1"
cd /proc
for q in */cmdline; do read x y < $q; [[ "${x/$procname/}" != "$x" ]] && { pid=${q/\/cmdline/}; kill -STOP $pid; kill -KILL $pid; }; done
for q in */cmdline; do read x y < $q; [[ "${x/$procname/}" != "$x" ]] && { pid=${q/\/cmdline/}; kill -CONT $pid; }; done
}