![]() |
|
Register | Forum Rules | FAQs | Members List | Social Groups | Downloads | Search | Today's Posts | Mark Forums Read |
SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Adding a custom script during startup
While the docker container tries to do many things, it's likely that there are configurations that will require extra tweaking.
During startup if the following script exists in the SAGE_HOME (ie, root of the sagetv server) then it will get executed. Code:
sagetv-user-script.sh Code:
/opt/sagetv/server/sagetv-user-script.sh 1. Must have a script header like Code:
#!/bin/bash Code:
# chmod 775 sagetv-user-script.sh So, using the "sagetv-user-script.sh", you can do whatever you want BEFORE sagetv is started.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#2
|
|||
|
|||
Does SageTV wait for this script to complete before executing or does it execute SageTV concurrently with this script? Let's say I wanted to use a SageTV startup script to restart my HD-PVRs. If I ran the script to do a power cycle and then waited 10 seconds (or longer) would I be good?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#3
|
||||
|
||||
Quote:
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#4
|
|||
|
|||
Ok then I think this could be a good way to restart my HD-PVRs rather than using a cron job that runs during the weekly backup process described here.
On a related note - what is the easiest way to have SageTV trigger a SageTV system message when the service restarts? I use your notification plugin so this way I will see when this happens.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
I can share it but unless you have the same hardware, which in my case is a Digital Loggers web controlled power switch, then it won't be of any use to you. How to you plan to switch the power on and off?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#7
|
|||
|
|||
My fault, I was thinking you were telling them to reboot directly over the HD-PVR USB connection. I might be able to do it with my UPS. I'll look into it. Thanks.
|
#8
|
|||
|
|||
What user does this script run as?
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#9
|
||||
|
||||
It runs as sagetv. It also takes care of the ownerships and file format (ie, settting it properly) before running it.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding custom main menu item -Video Folder or Category | wado1971 | SageTV v7 Customizations | 0 | 08-10-2010 02:58 PM |
Adding a custom filter to Sage Movie Wall | medwynd | SageMC Custom Interface | 0 | 04-25-2010 10:08 AM |
Adding custom command for launching external program | dinki | SageMC Custom Interface | 14 | 01-22-2010 08:16 AM |
TIP: Adding automatic Wiz.bin backup to startup | laurenglenn | SageTV Linux | 5 | 03-31-2006 11:52 AM |
Adding a pause during close in custom xml menu... | n3w813 | SageTV Customizations | 2 | 05-16-2005 01:37 PM |