[mythtv-users] Trouble running mythbackend service

Ryan Steffes rbsteffes at gmail.com
Wed Jul 5 04:18:32 UTC 2006


On 7/4/06, Will Constable <willconstable at gmail.com> wrote:
>
>  I am running a fresh fedora core 5 install and have only upgraded its
> standard packages, added nvidia driver, and installed mythtv-suite.  I am
> trying to get mythbackend to run as a service, but have a problem.
> Chkconfig mythbackend is set to on in runlevel 5, and /sbin/service
> mythbackend status yields the message 'mythbackend dead but pid file exists'
> or something like that.  If I run the script directly from the /etc/init.d/
> folder (./mythbackend start) I get this error:
>
>
>
> Starting mythbackend: touch: cannot touch '/var/run/mythbackend.pid':
> Permission denied
>
> Chown: cannot access 'var/run/mythbackend.pid' No such file or directory
>
> Cannot open logfile /var/log/mythtv/mythbackend.log
>
> Cannot open loogfile; using stdout/stderr
>
> /var/run/mythbackend.pid: Permission denied
>
> Error opening pidfile
>
>
>
>
>
> 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?
>
>
>
> Thanks,
>
> Will Constable
>


Looks like the pid file was created when you were running as root, and now
your mythtv user can't overwrite it.  You need sudo rm
/var/run/mythbackend.pid
and you also need to chown the log file to the mythtv user or set it to
group/world writeable.

Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20060705/7cecbfb2/attachment.htm 


More information about the mythtv-users mailing list