[mythtv-users] mythbackend service not reliably closing via script

Michael T. Dean mtdean at thirdcontact.com
Sun Apr 3 15:32:14 UTC 2011


On 04/03/2011 10:42 AM, tim draper wrote:
> after a bit more testing the issue seems quite specific to the root user and
> the mythtv service command.
>
> i'm able to run the scripts fine when logged in via SSH (initial pm-suspend
> like mythtv-backend does), but it does actually shutdown.
> if i leave mythtv-backend to it's own devices, then it will freeze when
> executing the 'sudo service mythtv-backend stop' from either a sleep.d
> script, or a script called from sleep.d.
>
> can anyone shed any light on this, i'm really stuck!

Maybe you're failing to set a valid HOME (that includes a $HOME/.mythtv 
configuration directory) in your script, and, since sudo generally 
doesn't touch the HOME environment variable, if you were to execute the 
script from a badly-configured environment (such as in the init/upstart 
environment or a cron environment), it could mean you don't have a valid 
HOME?

Mike


More information about the mythtv-users mailing list