Opened 19 years ago
Closed 19 years ago
#3463 closed defect (invalid)
mythshutdown does not check for live tv recording
| Reported by: | anonymous | Owned by: | Isaac Richards |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | mythtv | Version: | head |
| Severity: | low | Keywords: | |
| Cc: | Ticket locked: | no |
Description
mythshutdown --status and --check both return 0 when the system is watching live tv and not recording any scheduled programs. This causes mythshutdown -x (safe shutdown) to happily shut down the system in the middle of watching live tv, which I can't imagine is intentional.
Change History (2)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
If you setup mythbackend/mythshutdown as described in the docs then there is no way Myth with shutdown your computer while watching live TV because the shutdown process will only start when the master backend has no active connections.
mythshutdown -x was a feature added by dev@... for use in scripts as he describes above. If it doesn't work the way you want you can always fix it so it does. If you create a ticket with a patch I will certainly take a look at it.

Replying to anonymous:
Actually it is intentional. The reason I wrote the shutdown code was so I could call it from a script and assign it to (eg.) a shutdown button on my remote and the pc power button. I don't particularly want to have to exit livetv every time I want to shutdown. What you probably want to do here is extend --check so that it optionally includes a livetv check, but not by default.