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 04-27-2014, 09:15 AM
btrcp2000 btrcp2000 is offline
Sage Fanatic
 
Join Date: Aug 2007
Posts: 888
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
Reply With Quote
  #2  
Old 04-27-2014, 11:28 AM
KeithAbbott KeithAbbott is offline
Sage Icon
 
Join Date: Oct 2009
Location: Southeastern Michigan
Posts: 1,375
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
Reply With Quote
  #3  
Old 04-28-2014, 10:25 AM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
Quote:
Originally Posted by btrcp2000 View Post
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?
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.
Reply With Quote
  #4  
Old 04-28-2014, 12:48 PM
graywolf's Avatar
graywolf graywolf is offline
Sage Icon
 
Join Date: Oct 2009
Location: NC
Posts: 1,389
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
}
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
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


All times are GMT -6. The time now is 03:26 PM.


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