[mythtv-users] Questionaire: What do you have your casepowerbutton do?
James C. Dastrup
jc at dastrup.com
Wed Jan 11 23:01:16 UTC 2006
>>Also, mythfrontend runs from a script which starts it in a loop. So if it ever crashes
>>(which it rarely ever does), or if someone accidentally exits out of it (more likely), it
>>starts right back up.
>
>Could you possibly post that script your're using to make the frontend restart when
>exited/crashed? I've been just browsing around trying to guess how to do it, but
>havn't really searched hard enough :). Thanks.
>
Sure. Here it is.
#!/bin/bash
#myth.sh
#This script starts the MythTranscode Daemon and
#start mythfrontend in a loop, in case it closes
#
sudo mtd -d
while [ /bin/true ]
do
sudo killall mythfrontend
sudo mythfrontend
sleep 2
done
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4231 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20060111/e80dde96/attachment.bin
More information about the mythtv-users
mailing list