Files
weather-station/build/arduino.avr.uno/extras/socat-remote.service
2022-10-28 13:44:10 +02:00

19 lines
434 B
Desktop File

# This file is part of the Home Assistant server.
[Unit]
Description=Socat bridge to ser2net
After=wg-quick@wg0.service
Requires=wg-quick@wg0.service
[Service]
Type=simple
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=socat-bridge
ExecStartPre=/usr/bin/rm -rf /dev/ttyV0
ExecStart=/usr/bin/socat -d -d pty,link=/dev/ttyV0,waitslave tcp:10.10.0.2:200,reuseaddr,fork
Restart=always
[Install]
WantedBy=multi-user.target