#! /bin/sh
if [ -f /tmp/gomunicator.pid ]; then

	kill -USR2 `cat /tmp/gomunicator.pid`
	COUNTER=0
	while test $COUNTER -lt 5; do
		if test -e /tmp/gomunicator.suspended; then

			sleep 2
			COUNTER=$(($COUNTER + 1))
		else
			COUNTER=99
		fi
	done
	if test $COUNTER -ne 99; then
		echo "gomunicator.suspended not removed by resumed process"
	fi
fi

