[mythtv-users] Auto Shutdown and Startup

DCL dcl63 at hotpop.com
Sat Oct 2 18:38:15 EDT 2004

I found a simple solution:

In the General section on the mythtvsetup screens, I set the "Startup 
Command:" to:

   su - mythtv -c "/home/mythtv/startfrontend $status"

Where the contents of /home/mythtv/startfrontend is:


      case $1 in
         user )
            ln -sf /usr/bin/mythfrontend 
         auto )
            rm -f /home/mythtv/.kde/Autostart/mythfrontend


Besure you set permisions on startfrontend so that the mythtv user can 
execute it.
This assumes you have set up automatic startup per instructions at 


DCL wrote:

> Mythtv will only auto shutdown if the frontend appliction is running.  
> How can mythtv be set to shutdown after a scheduled recording when it 
> is set to autostart if the front end is also set to autostart when the 
> application is started by the bios clock?
> I have tried a script the should be executed immediately after the 
> backend starts that checks the $status value, if "auto" it does 
> nothing, if "user" it should start mythfrontend.
> This does not work.  Any ideas?
> Thanks Dan
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

More information about the mythtv-users mailing list