[mythtv-users] everyday i have to make sure myth worked the day before
Jam
jam at tigger.ws
Sun Apr 3 00:06:51 UTC 2011
On Sunday, April 03, 2011 02:53:27 AM mythtv-users-request at mythtv.org wrote:
> > On Fri, Apr 1, 2011 at 4:01 AM, Brian J. Murrell <brian at interlinx.bc.ca>
wrote:
> >> And sadly, every few days I have to go report to my wife when something
> >> that was supposed to record didn't, for no fault of our own, but due to
> >> mythbackend locking up and/or having to be restarted so that a frontend
> >> can communicate with it, etc.
> >
> >
> >
> > So submit bug reports so we can fix it?
>
> As promised, a backtrace and backend log are in the bug now. Bug number
> is 9704.
sandypit:~ # cat chkmyth
#!/bin/bash
pid=`cat /var/run/myth.pid`
[ -f /proc/$pid/status ] && exit
/usr/sbin/rcmythtv start
sandypit:~ # cat /etc/init.d/mythtv
#! /bin/sh
### BEGIN INIT INFO
# Provides: mythtv-backend
# Required-Start: $ALL
# Required-Stop: $null
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: Start/Stop the MythTV server.
### END INIT INFO
PATH=/usr/bin
DAEMON=/usr/local/bin/mythbackend
NAME="mythbackend"
DESC="MythTV server"
case "$1" in
start)
# export MYTHCONFDIR=/usr/local/share/mythtv
/bin/su - root -c "$DAEMON --daemon --logfile /var/log/mythback.log --
pidfile /var/run/myth.pid"
;;
stop)
killall mythbackend
;;
restart|force-reload)
killall mythbackend
$DAEMON --daemon --logfile /var/log/mythbackend --pidfile
/var/run/myth.pid
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 2
;;
esac
exit 0
sandypit:~ # crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXX3ShaWC installed on Tue Oct 19 18:14:31 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
# min hour date mon day-of-week
* * * * * /root/chkmyth
and finally
sandypit:~ # ll /usr/sbin/rcmythtv
lrwxrwxrwx 1 root root 18 2010-08-08 17:12 /usr/sbin/rcmythtv ->
/etc/init.d/mytht
James
More information about the mythtv-users
mailing list