|
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
|
|||
|
|||
Best practices for scheduled server reboots?
Dumped Dish and went back to cable with two Colossus cards. Working well except for the issue of choppiness that is fixed by a reboot.
what's is the best interval (nightly, weekly, etc.) and method to schedule reboots? Script?
__________________
[size=1]Current Server:V9 UNRAID Docker, SuperMicro x9dri-LNF4+, 32 GB ECC, 2x Xeon e5-2660v2, storage array 6TB, 2 Dish r5000HD tuners, 1 HDHomerun Quatro, 1 HDHomerun Extend 4 Nvidia Shield TVs with Miniclient |
#2
|
|||
|
|||
Maybe use something like this: http://www.portablefreeware.com/index.php?id=2487
__________________
Server: MSI Z270 SLI Plus ATX Motherboard, Intel i7-7700T CPU, 32GB Memory, Unraid 6.11.5, sagetvopen-sagetv-server-opendct-java11 Docker (version 2.0.7) Tuners: 2 x SiliconDust HDHomeRun Prime Cable TV Tuners, SiliconDust HDHomeRun CONNECT 4K OTA Tuner Clients: Multiple HD300 Extenders, Multiple Fire TV Stick 4K Max w/MiniClient Miscellaneous: Multiple Sony RM-VLZ620 Universal Remote Controls |
#3
|
|||
|
|||
It depends if you do not care about late night reboots you can just schedule a reboot using windows task scheduler. If you care if there is something recording and not reboot but only reboot when nothing is recording you need to use something like SJQ.
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct. |
#4
|
||||
|
||||
Here is a groovy Test script to see if something is recording or will record in the next XX minutes. You can use something similiar and have it do a reboot if the test passes.
Code:
def now = System.currentTimeMillis() def reqdMins = 30L int ScheduledRecording = 0 ; println " "; Global.GetScheduledRecordingsForTime(now, now + (reqdMins * 60000L)).each { mfAiring -> if( AiringAPI.IsNotManualOrFavorite(mfAiring) ) { println (ShowAPI.GetShowTitle(mfAiring) + " is LiveTV - no issue"); } else { ScheduledRecording = ScheduledRecording + 1 ; println ( ShowAPI.GetShowTitle(mfAiring) + " is Scheduled to record within $reqdMins minutes") ; } } if ( ScheduledRecording > 0 ) { // Scheduled Recording upcoming, Return for when it is safe println ( "Returned to Queue until safe to process"); sleep 900000 return 1 } else { // Looks to be safe, let's do this!! println ("Safe to kick off Backup job. No recordings scheduled within $reqdMins minutes"); return 0 } |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Server Requires Frequent Reboots | smdl | SageTV Software | 1 | 11-24-2013 10:03 AM |
PC reboots when Extenders connect to server | wayner | SageTV Software | 0 | 10-27-2012 02:22 PM |
Recording right to NAS, best practices? | kbyrd | Hardware Support | 1 | 11-25-2008 03:23 PM |
added an AMD X2 to my server, now it regularly reboots itself. help! | phelme | Hardware Support | 16 | 02-09-2008 11:49 AM |