[mythtv-users] Backend Watchdog??

wouter lists wouter.lists at gmail.com
Mon Jan 29 13:40:49 UTC 2007


What happens if you enter the full command in inittab just as it
appears after running the startup script?

Wouter

On 1/29/07, James Pifer <jep at obrien-pifer.com> wrote:
> On Mon, 2007-01-22 at 22:52 +0100, Oliver Lamm wrote:
> > James Pifer wrote:
> > > [...]
> > > Is there any specific place this should go in inittab or can it be stuck
> > > on the end? My backend doesn't go down that often, but it does happen
> > > once in a while.
> > >
> > Hi James,
> > just add it at the end, works fine here like that.
> >
> > Oli
>
>
> I'm trying to do this but it's not working. I added the line to inittab.
> When I restarted the backend system I was not able to connect to mythtv,
> but this showed in processes:
>
> # ps -ewf | grep backend
> root      2928     1  0 07:30 ?        00:00:00 su - mythtv -c mythbackend  -l /var/log/mythtv/mythbackend.log
> mythtv    2994  2928  0 07:30 ?        00:00:00 mythbackend -l /var/log/mythtv/mythbackend.log
> root      3321  3260  0 07:34 pts/1    00:00:00 grep backend
>
> I then started the mythbackend service and I end up with:
> # service mythbackend start
> Starting mythbackend:                                      [  OK  ]
> # ps -ewf | grep backend
> root      2928     1  0 07:30 ?        00:00:00 su - mythtv -c mythbackend  -l /var/log/mythtv/mythbackend.log
> mythtv    2994  2928  0 07:30 ?        00:00:00 mythbackend -l /var/log/mythtv/mythbackend.log
> root      3336     1  5 07:35 ?        00:00:00 /usr/bin/mythbackend --daemon --logfile /var/log/mythtv/mythbackend.log --pidfile /var/run/mythbackend.pid
> root      3363  3260  0 07:35 pts/1    00:00:00 grep backend
>
> Now the frontend connects just fine.
>
> Here's what I added to inittab:
> mtbe:2345:respawn:su - mythtv -c "mythbackend  -l /var/log/mythtv/mythbackend.log"
>
>
> Should I modify how it starts? Is it because as a service it runs as
> root and not mythtv?
>
> My mythbackend failed on me over the weekend for no apparent reason, but
> I'm not running in debug. So I would like to get the respawn working.
>
> Thanks,
> James
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


More information about the mythtv-users mailing list