SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-01-2012, 09:11 AM
brewston brewston is offline
Sage Expert
 
Join Date: Apr 2006
Location: Surrey
Posts: 719
Sage service not restarting after a crash

Hi Guys

I occasionally get the Sage service crashing (Its a JRE exception error in swscale.dll) Seems to happen when browsing fanart in Phoenix, but not very often and doesn't seem to be related to particular jpeg

Whats most annoying is that the Sage service doesn't restart itself, i have to log on and start it. Auto recovery is checked in the sage service control applet and when I look at the service in Windows (I'm on Win7) its set to restart on fail

Any ideas how to get it to restart automatically ? or failing that some add on program which I can use to monitor it ?

Thanks
__________________
Tecra M5, 2 x HD200, 2 x HD300
2 x PCTV 290e
Win 7, Sage 7.1.9, Phoenix 2 STV
Stephane's XMLTV Importer, Digiguide,
Reply With Quote
  #2  
Old 09-01-2012, 10:04 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
I have a script that I run on my server that will automatically restart stopped services as long as they are set to Automatic or Automatic Delay. I have it set to load at startup with a delay of 15 minutes.. after that it will check every 5 seconds. don't worry about resources etc... because 5 seconds on a PC is a long Interval.

I find it useful because it will restart any failed service that is set to Automatic startup. This has saved my butt many times.

One thing I have my server to autologon ... I am not sure if it works with the server at the logon screen.

startautoserviceloop.vbs
Code:
do
WScript.sleep 5000
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colListOfServices = objWMIService.ExecQuery _
 ("Select * from Win32_Service Where State = 'Stopped' and StartMode = " _
     & "'Auto'")
For Each objService in colListOfServices
    objService.StartService()
Next
loop
PS If you ever want to stop the SageService manually for maintenance etc.. you have to kill the script.... or else it will instantly restart it.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 09-01-2012 at 10:20 AM.
Reply With Quote
  #3  
Old 09-01-2012, 02:47 PM
brewston brewston is offline
Sage Expert
 
Join Date: Apr 2006
Location: Surrey
Posts: 719
Thanks, I will give it a try. 5 second pause should be long enough to restart the miniclient on the extender anyway..

It shows up as wscript.exe in the process listing right ? (As opposed to the script name)
__________________
Tecra M5, 2 x HD200, 2 x HD300
2 x PCTV 290e
Win 7, Sage 7.1.9, Phoenix 2 STV
Stephane's XMLTV Importer, Digiguide,

Last edited by brewston; 09-01-2012 at 02:48 PM. Reason: typo
Reply With Quote
  #4  
Old 09-01-2012, 03:24 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Correct wscript.

you can change the 5000 which is equivalent to 5 secs.

BTW make sure task scheduler is not set to end the task after running a certain amount of days. You want it to continue running.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 09-01-2012 at 04:07 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
UI crash on playback if service is running tombailey SageTV Software 0 12-11-2010 10:03 PM
Bizzare restarting Service issue frontlinegeek SageMC Custom Interface 4 08-30-2009 08:02 AM
Restarting Sage in service mode NCAL SageTV Software 5 05-14-2008 07:51 AM
Java VM Crash Running as Service RAlfieri SageTV Beta Test Software 2 10-03-2005 06:58 PM
Restarting comp using sage re1ex SageTV Software 8 06-24-2005 04:24 AM


All times are GMT -6. The time now is 05:20 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.