Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 7 years ago

Closed 7 years ago

#3463 closed defect (invalid)

mythshutdown does not check for live tv recording

Reported by: anonymous Owned by: ijr
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.

Attachments (0)

Change History (2)

comment:1 in reply to: ↑ description Changed 7 years ago by devel@…

Replying to anonymous:

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.

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.

comment:2 Changed 7 years ago by paulh

  • Resolution set to invalid
  • Status changed from new to 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.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.