linux systemctl auto start hdhomerun_record

Help and support for HDHomeRun Tuners, HDHomeRun DVR, and HDHomeRun software for Windows, Mac, Android, XBox, etc.
Post Reply
done
Posts: 3
Joined: Wed Apr 10, 2024 12:11 pm

linux systemctl auto start hdhomerun_record

Post by done »

I have been trying to get the hdhomerun_record to start automatically on "Rocky Linux release 9.7 (Blue Onyx)". I got sick of starting the script manually.
I have no issues getting hdhomerun_record to run manually.

This works just fine.
[hdhr@homerundvr ~]$ /recording/hdhomerun_record start --conf=/recording/hdhomerun.conf


I have tried many different systemctl configurations but I can not get any of them to work after a reboot.


[root@homerundvr ~]# cat /etc/systemd/system/hdhomerun.service
[Unit]
Description=SiliconDust HDHomeRun DVR service

[Service]
User=hdhr
Group=hdhr
WorkingDirectory=/recording/

Type=oneshot
ExecStart=/recording/hdhomerun_record start --conf=/recording/hdhomerun.conf
ExecStop=/recording/hdhomerun_record stop
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

Is there a systemctl file that works? What am I doing wrong. The other weird thing is that the log file does not show issues but none of the recorded shows show up unless I start up manually.

jasonl
Silicondust
Posts: 17721
Joined: Sun Oct 28, 2007 9:23 pm
x 97

Re: linux systemctl auto start hdhomerun_record

Post by jasonl »

This is the one the RPM package that another forum member created uses: https://github.com/garybuhrmaster/packa ... rd.service . If you want to just use the package, you can read more about that at viewtopic.php?t=36175 .

done
Posts: 3
Joined: Wed Apr 10, 2024 12:11 pm

Re: linux systemctl auto start hdhomerun_record

Post by done »

Thanks. I was afraid to use that because I thought I was going to be getting a much older version of the binary since it has not been updated in a while. I just checked and some how the versions are the same. I was able to get the rpm installed and now it starts at boot like I needed. Very nice!

jasonl
Silicondust
Posts: 17721
Joined: Sun Oct 28, 2007 9:23 pm
x 97

Re: linux systemctl auto start hdhomerun_record

Post by jasonl »

The packages get updated with the new DVR version shortly after each release. All the rest of the packaging rarely needs to change, mostly just if something changes in one of the distros that would affect how it starts or something like that.

Post Reply