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

tim draper veehexx at gmail.com
Sat Apr 2 11:25:27 UTC 2011


due to my hardware, i am unable to simply issue a standard 'pm-suspend'
command to my mythtv pc - specifically my tv card drivers have issues with
suspending so i have to unload the tv card drivers to ensure livetv works
correctly on resume.

my solution is to close mythtv-backend service, modprobe -r the tv card
drivers, and then suspend. upon resume i then modprobe the drivers and
restart mythbackend.

the problem is that when mythbackend initials the halt command (sudo
/usr/sbin/pm-suspend), then it will hang the script once the service stops
and wont allow the pc to continue suspending. issuing pm-suspend runs fine
when running via SSH.

i'm attempting to stop the mythbackend service via 'sudo service
mythtv-backend stop'. according to the log i'm writing the script output to,
the service stops. however once the 'sudo service' command completes, the
script appears to freeze and wont continue the remaining of the script.

any ideas, or anyone found an alternative solution to closing mythtv-backend
via script?

thanks for any help - i'm really stuck on this one.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20110402/b8c65643/attachment.html 


More information about the mythtv-users mailing list