#!/bin/sh
#

start()
{
    if [ -z `pidof osd_titles`] ; then
	echo "`date` Started titles show">>/store/log
	/usr/bin/osd_titles.pl
    fi
}

stop()
{
if [ -z `pidof osd_titles`] ; then
    echo "`date` Stopping titles show">>/store/log
    killall -s9 osd_titles.pl
    killall -s9 osd_titles
    rm -fr /var/run/titles.run
fi

}


# See how we were called.
case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	*)
		start
esac

exit $RETVAL
