Opened 11 years ago

Closed 11 years ago

Last modified 11 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

Description

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@…> 11 years ago.
v0.27-pre2-1282-ge300607
mythbackend.20130608000345.29770.log (13.8 KB) - added by Bill Meek <keemllib@…> 11 years ago.

Download all attachments as: .zip

Change History (5)

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

Attachment: version.txt added

v0.27-pre2-1282-ge300607

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

comment:1 Changed 11 years ago by gigem

Owner: set to gigem
Status: newassigned

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

Resolution: fixed
Status: assignedclosed

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 11 years ago by paulh

Milestone: unknown0.27
Note: See TracTickets for help on using tickets.