Skip to content

Instantly share code, notes, and snippets.

@mezza
Created May 7, 2024 15:09
Show Gist options
  • Save mezza/00e8562fcfbef5d14aa77d6ce2385ec7 to your computer and use it in GitHub Desktop.
Save mezza/00e8562fcfbef5d14aa77d6ce2385ec7 to your computer and use it in GitHub Desktop.
HDHomeRun Systemd service
[Unit]
Description=SiliconDust HDHomeRun DVR service
After=network.target time-sync.target
[Service]
Type=forking
User=me
ExecStart=/usr/local/bin/hdhomerun_record start --conf=/usr/local/etc/hdhomerun.conf
ExecStop=/usr/local/bin/hdhomerun_record stop --conf=/usr/local/etc/hdhomerun.conf
# Whether systemd will continue over-watch and restart on any halt
Restart=always
[Install]
WantedBy=multi-user.target
@mezza
Copy link
Author

mezza commented May 7, 2024

Couldn't find a working systemd unit definition, so posting here.

Download the hdhomerun_record binary from https://info.hdhomerun.com/info/dvr:linux, and then edit the user and path in the example above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment