[mythtv-users] Possible Errata/Bug Myth
R. G. Newbury
newbury at mandamus.org
Mon Apr 17 19:12:01 UTC 2006
Michael T. Dean wrote:
>> This caused the mysql.txt file
>>to be created (if not already present) with the default value of
>>localhost as the master backend hostname.
>>
>>Is this a bug/errata?
>
>
> No. MythTV programs (mythtv-setup, mythbackend, mythfrontend) will use
> $HOME/.mythtv for the configuration directory. So, if you run
> mythtv-setup as the root user, it makes $HOME/.mythtv/mysql.txt (
> /root/.mythtv/mysql.txt ). Then, if you attempt to start the service,
> which runs mythbackend as mythtv (as it should), it looks for mysql.txt
> in $HOME/.mythtv/mysql.txt (which, for it, is
> /home/mythtv/.mythtv/mysql.txt).
Except that under FC5 you *cannot* run /etc/init.d/mythbackend as
anything BUT the root user. The script (and /etc/sysconfig/mythbackend)
both have a place for defining {MBE_USER} which by default is 'root'.
The start portion of the script calls "daemon /path_to/mythbackend -d -l
/somelogfile"
DAEMON then changes to the folder /root/ which of course fails if the
user is anything BUT 'root'.
This also means that the frontend user cannot run 'service mythbackend
restart' to clear a locked crashed process.
My attempts at using daemon --nochdir (--nochngdir??) have not been
successful....
Ohh BTW, FC5 denies graphical login to the root user. I have grave
doubts that I will be able to explain to my wife how to re-set the
mythbox if the backend crashes. And its a PITA for me to do too.
Work-arounds or corrections needed.
Geoff
More information about the mythtv-users
mailing list