Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#11578 closed Bug Report - General (fixed)

Fix for #11109 Prevents Shutdown When Idle and Idle shutdown timeout isn't honored

Reported by: Bill Meek <keemllib@…> Owned by: gigem
Priority: minor Milestone: 0.27
Component: MythTV - General Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no


After applying a2eb931, a Backend that has Idle shutdown timeout set to a non-zero number of seconds (180 for me) will no longer shutdown.

Scheduler::HandleIdleShutdown? will never get called unless there's a schedule change. And in order to have a schedule change, the frontend is connected therefore, no shutdown. Or if mythfilldatabase runs, and no client is connected, then idle shutdown happens.

Tested with -v idle and the following don't appear in the backend log:

2013-06-07 13:37:19.095373 N [3034/3173] Scheduler scheduler.cpp:2833 (HandleIdleShutdown) - 120 secs left to system shutdown!

Also note that if a schedule run is done (e.g. by mythfilldatabase or via mythweb) then the shutdown is immediate, the value of Idle shutdown timeout is ignored.

Attachments (2)

version.txt (843 bytes) - added by Bill Meek <keemllib@…> 5 years ago.
mythbackend.20130608000345.29770.log (13.8 KB) - added by Bill Meek <keemllib@…> 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by Bill Meek <keemllib@…>


Changed 5 years ago by Bill Meek <keemllib@…>

comment:1 Changed 5 years ago by gigem

  • Owner set to gigem
  • Status changed from new to assigned

comment:2 Changed 5 years ago by David Engel <dengel@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In 27c6b4ed5328db6483f4d6848cdabd37434950d4/mythtv:

Fix issues with earlier scheduler timing refactor.

Fix a few issues, that were intruduced in SHA1:a2eb9312, including the
failure to put inactive slaves to sleep.

Fixes #11578
Refs #11108

comment:3 Changed 5 years ago by paulh

  • Milestone changed from unknown to 0.27

Add Comment

Modify Ticket

as closed The owner will remain gigem.
The resolution will be deleted. Next status will be 'new'.

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

Note: See TracTickets for help on using tickets.