Project

General

Profile

Autostart TVH on Synology NAS

Added by Jens Jensen about 5 years ago

Hi,

how can I automatic start TVH on a Synology NAS?
TVH stops from time to time on my NAS and I want to restart if is stopped.

I have tried a Python script to find out if the TVH task dont run and then execute this command:
/var/packages/tvheadend/scripts/start-stop-status start

But this is the output:
/var/packages/tvheadend/scripts/service-setup: line 6: [: : integer expression expected
Starting ...
/var/packages/tvheadend/scripts/service-setup: line 18: type: service_prestart: not found
/var/packages/tvheadend/scripts/start-stop-status: line 30: [: : integer expression expected

Iam on the right way or is there a better way?

thx for help


Replies (3)

RE: Autostart TVH on Synology NAS - Added by Jens Jensen about 5 years ago

I can start it only manually via the Package Center, I'm right?

RE: Autostart TVH on Synology NAS - Added by Jens Jensen about 5 years ago

Gracias! I found it there https://www.synology.com/en-global/knowledgebase/DSM/help/DSM/AdminCenter/system_taskscheduler
You can autostart a service, this is working.

I tried all the time to start tvh with an "User-defined script", this doesn't work.

RE: Autostart TVH on Synology NAS - Added by Stephen Foged over 3 years ago

Hi.
Can you autostart it only once a day?
Or can you autostart it just if it stops?

After ½ a year, mine started shutting down too.
On Synology.

Stephen

    (1-3/3)