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 10 months ago

Closed 10 months ago

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

Download all attachments as: .zip

Change History (5)

Changed 10 months ago by Bill Meek <keemllib@…>

v0.27-pre2-1282-ge300607

Changed 10 months ago by Bill Meek <keemllib@…>

comment:1 Changed 10 months ago by gigem

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

comment:2 Changed 10 months 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 10 months ago by paulh

  • Milestone changed from unknown to 0.27

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.