SageTV Community  

Go Back   SageTV Community > SageTV BETA Release Products > SageTV Beta Test Software

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-24-2010, 11:59 AM
kevine's Avatar
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
Automated Sage Server Restarts

Since the implementation of plugin installation via UI and the SageTV server restart requests in the UI, I would like to request a new feature. When you get prompted to restart, it would really be nice if there were 2 additional options. 1 would be an automated restart at the next time there are no recordings happening. A second would be an automated restart overnight or at a particular date/time. Seems to me this should be easy to implement. I realize they have locked down the code for 7.0 and are only doing bug fixes but maybe 7.1.
__________________
Server: Intel Core 2 Quad Q9550 (2.83GHz, 1333FSB), Asus P5B Deluxe MB w/Gb LAN, 4GB AData RAM, WHS, PVR-500 (NTSCx2), HDHomeRun x2 (4 QAM), HDPVR x2, 6.7 TB data pool, Comskip/SJQv3, HD200x3, SD-MVPx2
Reply With Quote
  #2  
Old 09-24-2010, 01:39 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 3,309
I've got a little java program that does this... I run it from cron on Linux or Task Scheduler on Windows and it just polls the sagetv server every 5 mins checking to see if a reboot is necessary and if it is it then checks if there's a free 15 mins available to do a reboot. If so, it restarts the Sage server (just the Sage app, not the actual whole system reboot). It requires the sagex-api and RMI must be enabled.

I could probably clean it up and make it available, if interested.
__________________
Twitter: @ddb_db
Server: Intel Q6600 Quad Core, 2GB RAM, 1 x 80GB OS HD (WinXP SP3), 2 x 750GB recording drives (RAID 1)
NAS: unRAID server 4.7.0; 3TB
Capture: 2 x Colossus, 2 x PVR-250
STB Controller: 1 x USB-UIRT
Software:Java 1.6.0_33; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #3  
Old 09-24-2010, 01:47 PM
owilsky's Avatar
owilsky owilsky is offline
Sage Aficionado
 
Join Date: Dec 2004
Location: Germany
Posts: 447
Oh yes, I am also interested in that. Would it be possible to add an option to also reboot the whole machine?
__________________
Oliver Kötter
------------
Check this thread for importing German TV Data into SageTV

Using SageTV 7.1.9, Java 1.6.0_24 Win7 Home Premium on an
Asus M4N78-AM Mainboard, AMD Athlon II X2 215, 4 GB RAM, 500 GB HDD, 2xTechnoTrend S-2400 as Network Encoder (LM DVB Smart Recorder), ATI Radeon HD 3450 with analog TV-Out on good old CRT TV (100Hz)
My avatar shows the world's best composer!!!
Reply With Quote
  #4  
Old 09-24-2010, 03:22 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 3,309
Quote:
Originally Posted by owilsky View Post
Oh yes, I am also interested in that. Would it be possible to add an option to also reboot the whole machine?
Let me clean up what's there first and get that out then I'll take feature requests. It was never meant to be a released plugin type of thing just something I whipped up for myself, but I'll clean it up and make it available.
__________________
Twitter: @ddb_db
Server: Intel Q6600 Quad Core, 2GB RAM, 1 x 80GB OS HD (WinXP SP3), 2 x 750GB recording drives (RAID 1)
NAS: unRAID server 4.7.0; 3TB
Capture: 2 x Colossus, 2 x PVR-250
STB Controller: 1 x USB-UIRT
Software:Java 1.6.0_33; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
  #5  
Old 09-25-2010, 04:56 AM
kevine's Avatar
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
Quote:
Originally Posted by Slugger View Post
Let me clean up what's there first and get that out then I'll take feature requests. It was never meant to be a released plugin type of thing just something I whipped up for myself, but I'll clean it up and make it available.
Thanks, Slugger. I agree it probably did not make sense before. But before, I had to set aside a time I was going to work on plugins for install and update when nobody was on the system. Now that installation like this is so easy, it only makes sense to make the reboot/restart as easy too.

Great suggestion on the reboot option too. Although, I have a weird problem where my NIC card will alternate 100 Mbps to 1 Gbps after each reboot. So in order to keep 1 Gbps, I have to reboot twice. Have not found a solution to that yet.
__________________
Server: Intel Core 2 Quad Q9550 (2.83GHz, 1333FSB), Asus P5B Deluxe MB w/Gb LAN, 4GB AData RAM, WHS, PVR-500 (NTSCx2), HDHomeRun x2 (4 QAM), HDPVR x2, 6.7 TB data pool, Comskip/SJQv3, HD200x3, SD-MVPx2
Reply With Quote
  #6  
Old 09-25-2010, 06:04 AM
deanm deanm is offline
Sage Advanced User
 
Join Date: Apr 2005
Location: North East, UK
Posts: 169
My solution is not automated but does the trick. You have to do it manually. I run a headless server and miss the Other Program pluggin from SageMC where it I used to run scripts to reboot the server.. So wrote my own for v7 to reboot my server, shut it down etc. Will develop it more if there is intrest. It runs scripts on the server. At the moment the file paths are hard coded. But just could be easily changed.

Dean
Attached Images
File Type: jpg control.JPG (34.6 KB, 41 views)
__________________
Install 1: DVB-S2 x4 HD-300 x2 HD-200 x1 HD-100 x1
Install 2: DVB-T x4 DVB-T2 x2 HD-300 x1 HD-200 x1
Reply With Quote
  #7  
Old 09-26-2010, 01:22 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 3,309
Executable jar for auto detected restarts now available.
__________________
Twitter: @ddb_db
Server: Intel Q6600 Quad Core, 2GB RAM, 1 x 80GB OS HD (WinXP SP3), 2 x 750GB recording drives (RAID 1)
NAS: unRAID server 4.7.0; 3TB
Capture: 2 x Colossus, 2 x PVR-250
STB Controller: 1 x USB-UIRT
Software:Java 1.6.0_33; SageTV 7.1.9
Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter
Plugins: Too many to list now...
Reply With Quote
Reply


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

Advanced Search
Display Modes

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
Program jumps ahead or restarts cte SageTV Software 0 07-30-2009 05:23 PM
Sage 6.2 beta computer restarts mclement60 SageTV Beta Test Software 1 08-14-2007 05:44 PM
Automated Sage backups...please be gentle! Shield SageTV Customizations 9 08-12-2007 09:16 AM
Sage TV my generator automated roxy99 SageTV Customizations 6 07-03-2007 12:19 PM
Sage boggs and computer restarts??? T3rry Hardware Support 11 11-21-2005 07:42 PM


All times are GMT -6. The time now is 06:40 AM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2003-2005 SageTV, LLC. All rights reserved.