Skip to content

Instantly share code, notes, and snippets.

@Leo-PL
Forked from alex27riva/rtl_tcp.service
Last active March 20, 2023 05:55
Show Gist options
  • Save Leo-PL/7bbb3a60362ff6f537559d7b04b1f452 to your computer and use it in GitHub Desktop.
Save Leo-PL/7bbb3a60362ff6f537559d7b04b1f452 to your computer and use it in GitHub Desktop.
Systemd service template for running rtl_tcp on startup
[Unit]
Description=Software Defined Radio TCP Server
Requires=network.target
After=network.target
[Service]
ExecStart=/bin/sh -c "/usr/bin/rtl_tcp -a 0.0.0.0 -d %i -p $$((1234+%i))"
Restart=on-failure
KillMode=control-group
[Install]
WantedBy=multi-user.target
@Leo-PL
Copy link
Author

Leo-PL commented Feb 26, 2023

To use with multiple receivers, use device index as instance name, for example rtl_tcp@0.service. Index 0 listens at port 1234, 1 at 1235, and so on.

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