[mythtv] [PATCH] Add option to mythfilldatabase to change

Robert Tsai rtsai1111 at comcast.net
Sat Apr 30 22:51:36 UTC 2005


On Sun, May 01, 2005 at 08:21:39AM +1000, William Uther wrote:
> William Uther wrote:
> >Hamish wrote:
> >> William Uther wrote:
> >>> Hamish Moffatt wrote:
> >>>> Why not run the backend as non-root instead?
> >>>
> >>> Certainly an option. I didn't go that path because I hold out
> >>> hope for the real time threads feature.
> >>
> >>AFAIK, real-time threads are only used in the frontend, not the
> >>backend.
> >
> >I'm sure there was a reason I thought the backend was better
> >running as root, but you seem to be correct.  I'm testing a patch
> >to the init script to fix the problem instead of that one.
> 
> Does anyone know how to make something like:
> 
> export HOME=~${USER}
> 
> actually work in sh?
> 
> export HOME=/home/mythtv
> and
> export HOME=~mythtv
> 
> both set HOME to /home/mythtv
> 
> but having USER as a variable sets HOME to "~mythtv" which is then not 
> expanded into "/home/mythtv".
> 
> Anyway, it seems adding one of the first two to the init script fixes 
> the problem I was having, so that patch is not needed.

if you use "sudo", you can use "sudo -H -u mythtv" to automatically
set up the HOME environment variable, or you can configure sudoers.

--Rob


More information about the mythtv-dev mailing list