Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Mythtvnz

Mythbackend and Apache2 fail to start at boot

 

 

MythTV mythtvnz RSS feed   Index | Next | Previous | View Threaded


graeme.joy at paradise

May 15, 2010, 10:07 PM

Post #1 of 6 (934 views)
Permalink
Mythbackend and Apache2 fail to start at boot

Since building a Lucid Myth machine, (when Lucid was still in Beta) I
have had a problem with mythbackend and apache2 not starting at boot
time. mythtv-backend is sym linked to 'upstart-job'. It starts fine
when '/etc/init.d/mythtv-backend restart' is called.

I like to turn my machine off during the night and every so often in the
morning I forget to manually restart the backend, recordings are missed
resulting in low WAF.

Does anyone know know to fix this?

Thanks
Graeme

_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


stevehodge at gmail

May 15, 2010, 10:27 PM

Post #2 of 6 (896 views)
Permalink
Re: Mythbackend and Apache2 fail to start at boot [In reply to]

On Sun, May 16, 2010 at 5:07 PM, Graeme Woollett <graeme.joy [at] paradise
> wrote:

> Since building a Lucid Myth machine, (when Lucid was still in Beta) I
> have had a problem with mythbackend and apache2 not starting at boot
> time. mythtv-backend is sym linked to 'upstart-job'. It starts fine
> when '/etc/init.d/mythtv-backend restart' is called.
>
> I like to turn my machine off during the night and every so often in the
> morning I forget to manually restart the backend, recordings are missed
> resulting in low WAF.
>
> Does anyone know know to fix this?
>

My guess is that you have to add it to the default runlevel somehow. I'm not
sure how you do that with Lucid, with Gentoo it would be "rc-update add
mythbackend default".

Cheers,
Steve


nick.rout at gmail

May 15, 2010, 10:37 PM

Post #3 of 6 (885 views)
Permalink
Re: Mythbackend and Apache2 fail to start at boot [In reply to]

On Sun, May 16, 2010 at 5:27 PM, Steve Hodge <stevehodge [at] gmail> wrote:
> On Sun, May 16, 2010 at 5:07 PM, Graeme Woollett
> <graeme.joy [at] paradise> wrote:
>>
>> Since building a Lucid Myth machine, (when Lucid was still in Beta) I
>> have had a problem with mythbackend and apache2 not starting at boot
>> time.  mythtv-backend is sym linked to 'upstart-job'.  It starts fine
>> when '/etc/init.d/mythtv-backend restart' is called.
>>
>> I like to turn my machine off during the night and every so often in the
>> morning I forget to manually restart the backend, recordings are missed
>> resulting in low WAF.
>>
>> Does anyone know know to fix this?
>
> My guess is that you have to add it to the default runlevel somehow. I'm not
> sure how you do that with Lucid, with Gentoo it would be "rc-update add
> mythbackend default".

There is a bug in mythtbackend's ubuntu packaging to do with the move
to upstart. I saw a fix to delete some script, but damned if I can
find the post.

In the meantime a script in /etc/rc.local should fix it.

_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


stephen_agent at jsw

May 16, 2010, 12:19 AM

Post #4 of 6 (887 views)
Permalink
Re: Mythbackend and Apache2 fail to start at boot [In reply to]

On Sun, 16 May 2010 17:07:14 +1200, you wrote:

>Since building a Lucid Myth machine, (when Lucid was still in Beta) I
>have had a problem with mythbackend and apache2 not starting at boot
>time. mythtv-backend is sym linked to 'upstart-job'. It starts fine
>when '/etc/init.d/mythtv-backend restart' is called.
>
>I like to turn my machine off during the night and every so often in the
>morning I forget to manually restart the backend, recordings are missed
>resulting in low WAF.
>
>Does anyone know know to fix this?
>
>Thanks
>Graeme

Do you have a /etc/init/mythtv-backend.conf file for upstart? This is
what mine looks like in Mythbuntu 9.10:

# MythTV Backend service

description "MythTV Backend"
author "Matt Mossholder <matt [at] mossholder>"

start on (local-filesystems and net-device-up IFACE=lo)
stop on starting shutdown

#expect fork
respawn

script
test -f /etc/default/mythtv-backend && .
/etc/default/mythtv-backend || true
exec /bin/su -c "/usr/bin/mythbackend $ARGS" $USER
end script

And looking at that, I think I need to fix it a bit - it is waiting
for lo to be up, but I have MythTV configured to use eth0 so I can
access it from other frontends.

_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


stephen_agent at jsw

May 16, 2010, 12:33 AM

Post #5 of 6 (900 views)
Permalink
Re: Mythbackend and Apache2 fail to start at boot [In reply to]

On Sun, 16 May 2010 19:19:11 +1200, you wrote:

>On Sun, 16 May 2010 17:07:14 +1200, you wrote:
>
>>Since building a Lucid Myth machine, (when Lucid was still in Beta) I
>>have had a problem with mythbackend and apache2 not starting at boot
>>time. mythtv-backend is sym linked to 'upstart-job'. It starts fine
>>when '/etc/init.d/mythtv-backend restart' is called.
>>
>>I like to turn my machine off during the night and every so often in the
>>morning I forget to manually restart the backend, recordings are missed
>>resulting in low WAF.
>>
>>Does anyone know know to fix this?
>>
>>Thanks
>>Graeme
>
>Do you have a /etc/init/mythtv-backend.conf file for upstart? This is
>what mine looks like in Mythbuntu 9.10:
>
># MythTV Backend service
>
>description "MythTV Backend"
>author "Matt Mossholder <matt [at] mossholder>"
>
>start on (local-filesystems and net-device-up IFACE=lo)
>stop on starting shutdown
>
>#expect fork
>respawn
>
>script
> test -f /etc/default/mythtv-backend && .
>/etc/default/mythtv-backend || true
> exec /bin/su -c "/usr/bin/mythbackend $ARGS" $USER
>end script
>
>And looking at that, I think I need to fix it a bit - it is waiting
>for lo to be up, but I have MythTV configured to use eth0 so I can
>access it from other frontends.

Oops, that got word wrapped. The "test -f /etc/default/mythtv-backend
&& ." and the "/etc/default/mythtv-backend || true" bits are all one
line.

_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


nick.rout at gmail

May 17, 2010, 1:12 PM

Post #6 of 6 (867 views)
Permalink
Re: Mythbackend and Apache2 fail to start at boot [In reply to]

On Sun, May 16, 2010 at 7:33 PM, Stephen Worthington
<stephen_agent [at] jsw> wrote:
> On Sun, 16 May 2010 19:19:11 +1200, you wrote:
>
>>On Sun, 16 May 2010 17:07:14 +1200, you wrote:
>>
>>>Since building a Lucid Myth machine, (when Lucid was still in Beta) I
>>>have had a problem with mythbackend and apache2 not starting at boot
>>>time.  mythtv-backend is sym linked to 'upstart-job'.  It starts fine
>>>when '/etc/init.d/mythtv-backend restart' is called.
>>>
>>>I like to turn my machine off during the night and every so often in the
>>>morning I forget to manually restart the backend, recordings are missed
>>>resulting in low WAF.
>>>
>>>Does anyone know know to fix this?
>>>
>>>Thanks
>>>Graeme
>>
>>Do you have a /etc/init/mythtv-backend.conf file for upstart?  This is
>>what mine looks like in Mythbuntu 9.10:
>>
>># MythTV Backend service
>>
>>description     "MythTV Backend"
>>author          "Matt Mossholder <matt [at] mossholder>"
>>
>>start on (local-filesystems and net-device-up IFACE=lo)
>>stop on starting shutdown
>>
>>#expect fork
>>respawn
>>
>>script
>>        test -f /etc/default/mythtv-backend && .
>>/etc/default/mythtv-backend || true
>>        exec /bin/su -c "/usr/bin/mythbackend $ARGS" $USER
>>end script
>>
>>And looking at that, I think I need to fix it a bit - it is waiting
>>for lo to be up, but I have MythTV configured to use eth0 so I can
>>access it from other frontends.
>
> Oops, that got word wrapped.  The "test -f /etc/default/mythtv-backend
> && ." and the "/etc/default/mythtv-backend || true" bits are all one
> line.

This is the thread I was thinking of:

http://www.gossamer-threads.com/lists/mythtv/users/435419#435419

_______________________________________________
mythtvnz mailing list
mythtvnz [at] lists
http://lists.ourshack.com/mailman/listinfo/mythtvnz
Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/

MythTV mythtvnz RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.