Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
Description
<h3 style="margin-top:10px;color:#222222;line-height:115%;font-style:normal;font-size:1.4em;font-weight:bold;font-variant:normal;font-family:arial,verdana,sans-serif;"><a title="Follow link" data-cke-saved-name="StepstoReproduce" name="StepstoReproduce"></a>Issue</h3><p>The TV Service does not react on a system shutdown by stopping and disabling the plugins and the TVController cleanly. It simply waits until its processes are killed by Windows, which leads to error messages in the log files.<br />But even a manual stop (net stop tvservice) is logged as error, though the tvservice and its plugins terminate cleanly.</p><h4><a title="Follow link" data-cke-saved-name="StepstoReproduce" name="StepstoReproduce"></a>Steps to Reproduce</h4><p>Reboot system and have a look in the TV Server's error.log. You will find something like:<br />2013-03-02 13:44:37.615427 <span class="error">[PowerScheduler poll thread(14)]</span>: Exception :Error: DatabaseUnavailableUnclassified<br />Gentle.Common.GentleException: The database backend (provider MySQL) could not be reached.<br />...</p><p>Do a manual stop of the TV Service (net stop tvservice). In the TV Server's error.log you will find:<br />2013-03-02 13:44:37.615427 <span class="error">[TVService(6)]</span>: TvService OnStart failed : System.Threading.ThreadAbortException: Thread was being aborted.<br />at System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout)<br />at TvService.TvServiceThread.OnStart()</p><h4><a title="Follow link" data-cke-saved-name="AdditionalInformation" name="AdditionalInformation"></a>The solution is described in <a title="Follow link" data-cke-saved-href="http://www.atomia.com/blog/2011/11/16/how-to-process-the-preshutdown-event-in-a-managed-windows-service" href="http://www.atomia.com/blog/2011/11/16/how-to-process-the-preshutdown-event-in-a-managed-windows-service">http://www.atomia.com/blog/2011/11/16/how-to-process-the-preshutdown-event-in-a-managed-windows-service</a></h4><p><br /><br /><br /></p><div class="jeditor-sign" style="display:none;"><br /></div>