[mythtv-users] Trouble running mythbackend service

Nick knowledgejunkie at gmail.com
Mon Jul 10 03:08:03 UTC 2006


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


More information about the mythtv-users mailing list