[mythtv-users] mythbackend not starting on mythbuntu ubuntu 13.10
Chris Lewis
chrislewis915 at gmail.com
Sun Feb 9 11:40:51 UTC 2014
OK i have added comments to the file /etc/init/mythtv-backend.conf as below.
# MythTV Backend service
description "MythTV Backend"
author "Mario Limonciello <superm1 at ubuntu.com>"
echo "job called" >> /home/chris/backend-startup.log
start on (local-filesystems and net-device-up IFACE!=lo and started
udev-finish)
stop on runlevel [016]
echo "start on working" >> /home/chris/backend-startup.log
#expect fork
kill timeout 10
respawn
respawn limit 2 3600
echo "backend pre-start script begins" >> /home/chris/backend-startup.log
pre-start script
[ -x /usr/sbin/mysqld ] || exit 0
for i in `seq 1 30` ; do
/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping &&
exit 0
sleep 5
done
end script
echo "script begins" >> /home/chris/backend-startup.log
script
ulimit -c unlimited
test -f /etc/default/locale && . /etc/default/locale || true
ARGS="--syslog local7"
sleep 5
test -f /etc/default/mythtv-backend && .
/etc/default/mythtv-backend || true
LANG=$LANG exec /usr/bin/mythbackend --user mythtv $ARGS $EXTRA_ARGS
end script
And it get nothing in the log file at all.
Any more ideas?
Chris
On 8 February 2014 02:08, Mike Carron <jmcarron at starstream.net> wrote:
>
> On 2/7/2014 4:44 PM, Chris Lewis wrote:
>
>> Hi,
>>
>> I have had a problem for a while where the backend does not restart at
>> reboot.
>>
>> If i run 'sudo service mythtv-backend start' in a terminal after boot
>> then the backend starts fine. The trouble is i recently rebooted the
>> machine over ssh while on holiday and forgot to restart the BE causing a
>> weeks lost recordings. Obviously this didnt go down well with the Long
>> Haired General.
>>
>> So can anyone offer any advice? I'm at a loss as to what to do?
>>
>> Thanks
>>
>> Chris
>>
> ***
> I've had the same thing happen randomly and every time it has been due to
> MythTV starting before the network is running. I've resolved my issue by
> inserting a 5 second delay in starting MythTV. It's probably not the
> 'right' way but it works.
>
> mike
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140209/bc6c7db3/attachment.html>
More information about the mythtv-users
mailing list