[Bug 237564] Re: mythtv-status should be run as the same user as mythtv

2008-06-05 Thread Andrew Ruthven
mythtv-status could run as the mythtv daemon user, but does the mythtv daemon user have the config.xml file? (I'm not running 0.21 yet, so can't check). As Björn points out you can't just have the cron job run the init script as the mythtv user due to needing to write to /etc/motd, but the init s

[Bug 237564] Re: mythtv-status should be run as the same user as mythtv

2008-06-05 Thread Björn Torkelsson
That won't work if you want to update /etc/motd with the mythtv-status output and as all the cron job does is calling /etc/init.d/mythtv-status you probably have to just call mythtv-status as 'mythtv' and let the rest be run as root. On the other hand I think the init.d script is a bit strange. Why

[Bug 237564] Re: mythtv-status should be run as the same user as mythtv

2008-06-05 Thread Mario Limonciello
I think the actual solution should be running as the mythtv daemon user. This user is available on all systems w/ some variety of MythTV installed (packaged of course). So make mythtv-status depend on mythtv- common, and make it's cron job launch as 'mythtv'. -- mythtv-status should be run as th

[Bug 237564] Re: mythtv-status should be run as the same user as mythtv

2008-06-05 Thread Andrew Ruthven
But what happens if you don't have a frontend on the box? What happens if the .mythtv/config.xml still doesn't exist? My preference is use a modified MythTV.pm which doesn't require accessing the database. I've made the modification, I just need to submit the patch to the MythTV trac instance.