|
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.) |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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, |
#2
|
|||
|
|||
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
__________________
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. |
#3
|
|||
|
|||
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 |
#4
|
|||
|
|||
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. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |