[mythtv-users] how to delay mythfrontend startup

Yianni yiannividalis at hotmail.com
Sat Sep 20 05:36:35 UTC 2014



> From: gaberubin at gmail.com 
> Date: Fri, 19 Sep 2014 18:36:30 -0700 
> To: mythtv-users at mythtv.org 
> Subject: [mythtv-users] how to delay mythfrontend startup 
>  
> [mythtv at Mythbox ~]$ more .ratpoisonrc 
> #Make escape (default C-t) not clash with mythTV key bindings 
> escape C-r 
> #Banish the mouse cursor out of the way. 
> addhook switchwin banish 
>  
> exec /usr/bin/xset -dpms>/dev/null 
> exec /usr/bin/xset s off>/dev/null 
> exec /usr/bin/mythstart.sh 
> exec /usr/bin/irexec 

I've created a script that checks if mythbackend is running before showing the frontend.
You could modify your mythstart.sh script to something like:

#!/bin/bash
for ((coun=1 ; coun<=30 ; coun++))
do
  if [ "$(pidof mythbackend)" ]
  then   # mythbackend is running
      mythfrontend
      break
  else   # mythbackend is not running
      sleep 5
  fi
done




Yianni
 		 	   		  


More information about the mythtv-users mailing list