#!/bin/bash

for my_process in ` ps ax | grep -v unthrottler | grep throttler | grep -v grep | awk '{print $1 "|" $7 "|" $8 }'` ; do 
	my_pid=`echo $my_process |  cut -d '|' -f 1 `
	my_context=`echo $my_process |  cut -d '|' -f 2 `
	process_pid=`echo $my_process |  cut -d '|' -f 3 `
	kill -9 $my_pid
	vkill --xid $my_context -s CONT  $process_pid
	if [[ -f /var/run/throttler/$my_pid ]] ; then
		rm -f /var/run/throttler/$my_pid
	fi
done

