[mythtv-users] xinit Finds But Does Not Execute .xinitrc

Kirk Bocek t004 at kbocek.com
Fri Dec 2 05:23:26 UTC 2011



On 12/1/2011 3:56 PM, Kirk Bocek wrote:
> I have a fresh install of CentOS 6 x86_64 that is going to become a
> MythTV frontend box. When booted, the box auto-logs in as mythtv, runs X
> and then is supposed to run mythfrontend through the .xinitrc file. This
> is something I've done for years on CentOS 5 and am now trying to do for
> the first time on CentOS 6.
>
> The box auto-logs in and runs X just fine. xinit finds the .xinitrc file
> but does not execute the commands in that file. After booting the
> process list looks like:
>
> |mythtv 12676 1514 0 09:40 tty7 00:00:00 /bin/sh /usr/bin/startx
> mythtv 12692 12676 0 09:40 tty7 00:00:00 xinit /var/lib/mythtv/.xinitrc
> -- /usr/bin/X :0 -auth /var/lib/mythtv/.serverauth.12
> root 12693 12692 1 09:40 tty8 00:00:01 /usr/bin/X :0 -auth
> /var/lib/mythtv/.serverauth.12676
> |
> xinit is finding the .xinitrc file but it does *not* run the commands
> there. I have tried playing with the permissions on that file.
>
> Does anyone know what the problem might be?

Okay, my problem appears to be at least partially an selinux problem. 
After disabling selinux in /etc/sysconfig/selinux and rebooting I can 
finally get mythfrontend to start. The following processes are added:

mythtv    1639  1634  0 21:04 ?        00:00:00 sh /var/lib/mythtv/.xinitrc
mythtv    1643  1639  0 21:04 ?        00:00:05 mythfrontend -l 
/var/log/mythtv/mythfrontend.log
mythtv    1673  1643  0 21:05 ?        00:00:00 [mythfrontend] <defunct>
mythtv    1675  1643  0 21:05 ?        00:00:00 [mythfrontend] <defunct>
...

However there is a *long* delay getting mythfrontend started and there 
are 20 of the zombie mythfrontend processes according to top.

So something still isn't right.

I assume the selinux thing could be solved by registering the 
/var/lib/mythtv directory and it's files with selinux but I can never 
remember the command. It's always just easier to just turn the whole 
thing off.



More information about the mythtv-users mailing list