[mythtv-users] Re: mythbackend on Gentoo

Pete Cable petercable at gmail.com
Thu Jul 21 10:31:53 EDT 2005


The real issue is that when the script redefines the value of HOME, it
cannot find the mysql.txt file that exists in /root/.mythtv, since it
no longers knows where root's HOME directory is. In my case, I had a
/var/log/mythtv, with correct permissions, but mythbackend
consistently was looking for mysql to be running on the localhost
(which is the default) when executed from the init script. When I ran
it from the command line it worked fine, because it was sourcing the
mysql.txt file I had created correctly. To get the init script to look
at the correct file, I just commented out the line redefining HOME and
the script works fine, even correctly writing to
/var/log/mythtv/mythbackend.log. I'm really not sure why the author of
that init script chose to redefine HOME, since it is not essential to
the functioning of the script.

Pete

On 7/20/05, Bryan Halter <bhalter at armyofpenguins.com> wrote:
> OR if you actually want the mythtv log files create /var/log/mythtv with 
> the permissions appropriate to the user who's running the daemon 
> (root).  The issue is that you cannot create 
> /var/log/mythtv/mythbackend.log since /var/log/mythtv doesn't exist :)
> 
> Pete Cable wrote:
> 
> >just comment out the line that reads:
> >
> >HOME="/var/log/mythtv"
> >
> >and it should start up via the rc script.
> >
> >Pete
> >
> >On 7/19/05, pschormeir at iiv.de <pschormeir at iiv.de> wrote:
> >  
> >
> >>Hi !
> >>
> >>I've also had similar problem with my gentoo - mythtv construction
> >>
> >>try the following :
> >>Has the user in /etc/conf.d/mythbackend permissions on the logfile, is
> this
> >>user a member of the groups video and audio ?
> >>Reset the service with /etc/init.d/mythbackend zap before trying to
> restart
> >>it !
> >>Any left over pid files like /var/run/mythbackend.pid ?
> >>Does the mysql.txt file have the right settings for the database server ?
> >>Is there a nfslockfile.lock in the /mnt/store, delete it.
> >>
> >>Hope this helps.
> >>
> >>Regards
> >>
> >>Fritz
> >>
> >>
> >>
> >>
> >>-----Ursprüngliche Nachricht-----
> >>Von: mythtv-users-bounces at mythtv.org
> >>[mailto:mythtv-users-bounces at mythtv.org]Im Auftrag von Erich Beckmann
> >>Gesendet: Mittwoch, 20. Juli 2005 02:32
> >>An: mythtv
> >>Betreff: [mythtv-users] mythbackend on Gentoo
> >>
> >>
> >>Hello,
> >>
> >>I just finished installing Myth on Gentoo and everything is working fine
> >>with one exception:
> >>The rc script that is supposed to start mythbackend in the default
> >>runlevel does not seem to function properly.
> >>If I start mythbackend manually form the command line everything works
> >>wonderfully.
> >>I can't seem to find any reason for this. Especially since the script in
> >>/etc/init.d says the backend is running fine but ps and mythfrontend
> >>tell a different story.
> >>
> >>Any help would be greatly appreciated.
> >>
> >>Sincerely,
> >>
> >>--
> >>------------------------------------------
> >>Erich Beckmann - junk account
> >>void at gourmetgeek.com
> >>203.606.0216
> >>------------------------------------------
> >>
> >>_______________________________________________
> >>mythtv-users mailing list
> >>mythtv-users at mythtv.org
> >>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >>
> >>
> >>_______________________________________________
> >>mythtv-users mailing list
> >>mythtv-users at mythtv.org
> >>http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
> >>
> >>    
> >>
> >
> >
> >  
> >
> 
> 


-- 
Pete


More information about the mythtv-users mailing list