[Unit] Description=IR server for IR remotes After=network.target # Keep retrying rather than giving up: the IRTrans receiver is a USB serial device, and # when it is missing at boot (unplugged, or enumerated late) irserver exits at once with # "Error opening COM/USB Port". Without a restart it then stays failed until someone # notices the remote does nothing. StartLimitIntervalSec=0 [Service] Type=simple ExecStart=/usr/bin/irserver /dev/ttyUSB0 Restart=on-failure RestartSec=10 [Install] WantedBy=multi-user.target