[mythtv-users] 0.23-fixes, mythshutdown --status returncode 254

cvb at kruemel.org cvb at kruemel.org
Sun Oct 31 07:39:34 UTC 2010


 On Sat, 30 Oct 2010 09:51:59 -0400, "Michael T. Dean" 
 <mtdean at thirdcontact.com> wrote:
>> When I start this script (as root/with sudo) from a terminal, it 
>> still runs fine.
>> If the script is launched via a link in /etc/cron.daily, 
>> mythshutdown --status
>> keeps returning 254, which is not listed in 
>> http://www.mythtv.org/wiki/Mythshutdown
>> and which appears to be unaffected by what mythtv is actually doing. 
>> The error
>> message printed on the screen is "mythshutdown: Could not initialize 
>> myth context. Exiting."
>>
>> I tried to adjust /etc/sudoers, as suggested here:
>> 
>> http://www.mythtv.org/pipermail/mythtv-users/2008-February/211699.html
>> /etc/sudoers now contains (inter alia):
>>
>> Defaults    env_reset
>> Defaults    env_keep="HOME"
>>
>> But that didn't help. The error keeps popping up when started from 
>> cron - even
>> when I set HOME specifically to "/root".
>>
>> So I suppose that HOME is not the only issue...?
>
> HOME must be set to a value that includes a valid $HOME/.mythtv
> configuration directory with a valid config.xml file.

 As mentioned above: If I start the script manually - via sudo or as 
 root - it works. /root contains .mythtv, and in /root/.mythtv there is a 
 valid config.xml.

 Christian


More information about the mythtv-users mailing list