[mythtv-users] Gentoo init.d script for mythbackend

Robin Gilks g8ecj at gilks.org
Mon Sep 19 11:01:21 UTC 2005


Success!!

At last I've found the problem.

But I'm not going to tell anyone :-))

>
> Its empty - mythbackend runs fine on its own, its the running of it from
> the init scripts thats broken :-(( Its as if its not finding a library on
> the search path so bombs but is OK when I telnet in & just run off the
> command line.
>
>> Have a look at /var/log/mythtv/mythbackend.log
>>
>> It probably holds your answers.
>>
>> -----Original Message-----
>> From: mythtv-users-bounces at mythtv.org
>> [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of Robin Gilks
>> Sent: Monday, 19 September 2005 2:56 PM
>> To: mythtv-users at mythtv.org
>> Subject: [mythtv-users] Gentoo init.d script for mythbackend
>>
>> Greetings
>>
>> I'm running 2 systems with Gentoo and on one, mythbackend starts up
>> fine.
>> On the other, it says "Started OK" but it just exits. I can run
>> mythbackend from the command line and also using start-stop-daemon, just
>> that it doesn't want to run from the init script itself.
>>
>> Any ideas (path or library search variables) of where to start on this?
>>
>> --
>> Robin Gilks
>>

I lied - I hate top posting so - here is the answer :-))

Its all down to the HOME variable in the Gentoo startup script which
points to /var/log/mythtv which is where mythbackend expects to find the
mysql.txt file so it knows where to connect to. On the master backend its
localhost but on the slave backend (the one that wouldn't work) its also
pointing at localhost which is WRONG - it should be pointing at the mysql
server (which also happens to be on the master backend).

Can't help thinking I've got all too many copies of mysql.txt floating
about on my system. I think a cleanup and a few symbol links is called
for!!

-- 
Robin Gilks zl3rob/g8ecj
Internet: g8ecj at gilks.org    http://www.gilks.org





More information about the mythtv-users mailing list