OpenELEC/OpenELEC.tv — Issue #218: Fix for: Avoid restarting xbmc during OE shutdown/reboot
Author: tompen-
Created: 2012-02-20 20:06:49+00:00
State: open

Conditions for occurance:

1.) Have much unwritten data in filesystem cache
2.) Issue a shutdown or reboot request from XBMC

If you look on the while loop in this script:
https://github.com/OpenELEC/OpenELEC.tv/blob/master/packages/mediacenter/xbmc/init.d/93_xbmc

The while loop continues it´s job and does a XBMC startup after it has given shutdown or reboot-command to Linux.
If the filesystem flush to disk during shutdown/reboot takes longer than sleep command, XBMC will attempt to restart.

Suggested fix is to break the while-loop after shutdown/reboot command has been given:
https://github.com/tompen-/OpenELEC.tv/commit/72392cf4184e770b68df26a02603ba84437ffafd

(Sorry for not opened as a pull request)