[mythtv-users] Mythbackend randomly dies

Jean-Yves Avenard jyavenard at gmail.com
Mon Aug 11 06:14:32 UTC 2008


hi

2008/8/11 Bobby Gill <bobbygill at rogers.com>:
> Would love to check out that script Jean-Yves! :)
>
> Bob

make sure the script isn't called mythbackend !

-bash-3.2$ cat ~root/cron/backend.sh
#! /bin/bash

if ps ax | grep -v grep | grep mythbackend > /dev/null
then
   echo "Mythbackend service ok" > /dev/null
else
   #echo "Mythbackend service is not running"
   echo "Mythbackend is not running" | mail -s "Mythbackend down" jy at avenard.org
   /etc/init.d/mythbackend restart
fi

and in /etc/crontab I have:
#Check mythbackend is running
0-59 * * * *	root	/root/cron/backend.sh


More information about the mythtv-users mailing list