#! /bin/sh
if test -f /tmp/gomunicator.pid; then
	kill -USR1 `cat /tmp/gomunicator.pid`
	COUNTER=0
	while test $COUNTER -lt 5; do
		if test -e /tmp/gomunicator.suspended; then
			COUNTER=99
		else
			sleep 2
			COUNTER=$(($COUNTER + 1))
		fi
	done
	if test $COUNTER -ne 99; then
		echo "gomunicator.suspended not created by suspended process"
	fi
fi

