[mythtv-users] Trouble running mythbackend service

Will Constable willconstable at gmail.com
Mon Jul 10 17:03:47 UTC 2006


Thanks for the help-- I think my problem was the var/lock/subsys thing.  It
all works perfectly now.

-will



-----Original Message-----
From: mythtv-users-bounces at mythtv.org
[mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Nick
Sent: Sunday, July 09, 2006 11:08 PM
To: Discussion about mythtv
Subject: Re: [mythtv-users] Trouble running mythbackend service

On 05/07/06, Will Constable <willconstable at gmail.com> wrote:
>
> Should there be a pidfile before I start the service?  If I understand
> correctly the pid files are created as processes run and deleted as
> processes terminate.  If I run the command 'sudo ./mythbackend start'
> everything works as it should.  Except mythbackend is running as root, of
> course.  Any ideas?

Was the error message "mythbackend dead, but subsystem locked"?

Checking my FC4 systems (I don't believe FC5 is different), I don't
have a pid file when mythbackend (or mythfrontend) is running. I do
have a /var/lock/subsys/mythbackend file, which the init script
creates and deletes on start and stop respectively, and problems with
which can cause the above error message.

Also note on FC, you can use the /etc/sysconfig/mythbackend file to
pass options to the init script such as log file and backend location.

As root, and with the backend not running, check for the presence of
the /var/lock/subsys/mythbackend file. If it exists, delete it. Then
as root (if using 'su', it's better to use 'su -' as you inherit
root's env), run

# service mythbackend start

I've looked over the mythbackend init script in SVN (and for
0.19-fixes) and neither create a pid file. On Fedora 2-4, I've never
had any problems getting mythbackend to run as a service. What's the
output of

# chkconfig --list mythbackend

Nick

-- 
MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users
_______________________________________________
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