[mythtv-commits] Ticket #3420: Suggested Enhancement: allow nested "mythshutdown --lock" calls

MythTV mythtv at cvs.mythtv.org
Sun May 6 04:46:33 UTC 2007


#3420: Suggested Enhancement: allow nested "mythshutdown --lock" calls
-------------------------+--------------------------------------------------
 Reporter:  anonymous    |       Owner:  ijr    
     Type:  enhancement  |      Status:  new    
 Priority:  minor        |   Milestone:  unknown
Component:  mythtv       |     Version:  head   
 Severity:  low          |  
-------------------------+--------------------------------------------------
 I find it useful to "nest" calls to "mythshutdown --lock", i.e. if
 "mythshutdown --lock" is executed n times than it takes n calls to
 "mythshutdown --unlock" to fully unlock rather than just one call.  This
 makes it possible to run multiple long running tasks on a myth box and for
 the box to shutdown when the tasks are complete, using this simple script:

 myth_master / # cat /media/bin/myth_task
 #!/bin/sh

 trap "/usr/local/bin/mythshutdown --unlock" SIGHUP SIGINT SIGQUIT SIGABRT
 SIGKILL SIGALRM SIGSEGV SIGTERM

 /usr/local/bin/mythshutdown --lock
 "$@"
 /usr/local/bin/mythshutdown --unlock
 trap - SIGHUP SIGINT SIGQUIT SIGABRT SIGKILL SIGALRM SIGSEGV SIGTERM
 myth_master / #


 I've attached a diff for this enhancement - I hope that it gets included
 :-)

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/3420>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list