Auto Start DVR on Synology NAS

Help and support for HDHomeRun DVR and HDHomeRun software for Windows 10, Mac, Android, XBox, etc.
glennm0270
Posts: 9
Joined: Sun Dec 03, 2017 1:33 pm
Contact:

Auto Start DVR on Synology NAS

Postby glennm0270 » Thu Dec 07, 2017 4:24 am

What's the best way to set up the DVR service on my Synology NAS so that it autostarts whenever the NAS reboots?

I'd like to take care of two situations: NAS powers down and starts up on a daily schedule, and NAS restarts unexpectedly.

Appreciate any pointers to guides/directions that will address those (even if it's two different approaches).

smithkt
Posts: 33
Joined: Thu Jan 24, 2013 8:47 pm

Re: Auto Start DVR on Synology NAS

Postby smithkt » Thu Dec 07, 2017 5:25 am

What I have done is use the Task Scheduler to launch a script on boot.

Go to the Control Panel > Task Scheduler.
Select Create > Triggered Task > User Defined Script

On the General tab give the task a name, set the user to a user with permissions to start the HDHomeRun task. Set the event to Boot-up

On the Task Settings tab you can optionally have the task fire off an email. In the User defines script enter this (this assumes the default paths. Adjust as needed)

Code: Select all

cd /volume1/HDHomeRun ./hdhomerun_record start

glennm0270
Posts: 9
Joined: Sun Dec 03, 2017 1:33 pm
Contact:

Re: Auto Start DVR on Synology NAS

Postby glennm0270 » Thu Dec 07, 2017 6:23 am

Yeah, that's what I looked for.

Unfortunately, my version of Task Scheduler doesn't have Triggered Task as a choice. Could be because my NAS is a 210 so it may not support the version of the Task Scheduler that has it.

Think I'll ask Synology about that...

jumpmanjay
Posts: 262
Joined: Wed May 06, 2015 12:33 pm

Re: Auto Start DVR on Synology NAS

Postby jumpmanjay » Thu Dec 07, 2017 7:03 am


glennm0270
Posts: 9
Joined: Sun Dec 03, 2017 1:33 pm
Contact:

Re: Auto Start DVR on Synology NAS

Postby glennm0270 » Thu Dec 07, 2017 7:07 am

Nice--thanks! I'll give it a try this afternoon, but it makes sense to me (and makes me wonder why I didn't try that to start with).

Appreciate it.

demonrik
Posts: 722
Joined: Mon May 04, 2015 10:03 am

Re: Auto Start DVR on Synology NAS

Postby demonrik » Thu Dec 07, 2017 7:44 am

try the new Synology Package
viewtopic.php?f=126&t=67044

glennm0270
Posts: 9
Joined: Sun Dec 03, 2017 1:33 pm
Contact:

Re: Auto Start DVR on Synology NAS

Postby glennm0270 » Thu Dec 07, 2017 3:38 pm

Unfortunately, the DS210j can't run DSM 6.x, it can only run 5.2 (unless something happened I didn't read about).

I set up the RC daemon script and the restart worked perfectly.

Thanks!

demonrik
Posts: 722
Joined: Mon May 04, 2015 10:03 am

Re: Auto Start DVR on Synology NAS

Postby demonrik » Thu Dec 07, 2017 4:04 pm

Unfortunately, the DS210j can't run DSM 6.x, it can only run 5.2 (unless something happened I didn't read about).
I could do a test build and relax the requirement to DSM 5.x if you want to try it out.
Looking at what I can find out there isn't large differences between the package systems, mostly would come down to underlying linux differences. The scripts I create are minimal and I would need to just change the INFO file to ensure apache is started rather than nginx.
Let me know if you (or anyone else) wants to try it.


Return to “HDHomeRun Software Setup & Troubleshooting (Live & DVR)”

Who is online

Users browsing this forum: A. Nonny Muss, foxbat121 and 8 guests