[mythtv-users] May have found a cause for a bug I am experiencing with the verison of 0.24 that will eventually become 0.25

Douglas Peale Douglas_Peale at comcast.net
Tue Sep 20 03:23:27 UTC 2011


On 09/19/2011 08:11 PM, Douglas Peale wrote:
> upstart conf file:
> $ cat mythtv-backend.conf
> # MythTV Backend service
>
> description     "MythTV Backend"
> author          "Mario Limonciello <superm1 at ubuntu.com>"
>
> start on (local-filesystems and net-device-up IFACE=lo and started udev-finish)
> stop on runlevel [016]
>
> #expect fork
> respawn
> respawn limit 2 3600
>
> 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
>
> script
>     test -f /etc/default/locale && . /etc/default/locale || true
>     LANG=$LANG /usr/bin/mythbackend --syslog local7 --user mythtv
> end script
>
>
> and I find this bug:
> https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/702802
>
> It seems that even though the network says it is ready, one still can't yet communicate on the network when MythTV tries to find
> the HDHomeRun tuners.
>
> I'm not too familiar with upstart, I'm trying to find some event to wait for, or some way of inserting a fixed delay as a
> workaround.
Of course a potential hackey fix was staring me right in the face.

I added "sleep 30" just before the "for" loop in the pre-start script.

This worked on the single test I've run. I'll keep an eye on it and report if it ever fails.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://www.mythtv.org/pipermail/mythtv-users/attachments/20110919/9b2d2848/attachment.bin 


More information about the mythtv-users mailing list