ctucx.git: serial2tcp

serial to tcp/ip bridge

commit ef1ea798224b912aa3cee213bdf91bb362fa05ea
parent fe28a2943c3369057b75606d51a03016e3d74de0
Author: Leah (ctucx) <leah@ctu.cx>
Date: Thu, 11 Feb 2021 16:32:10 +0100

add systemd-service
1 file changed, 17 insertions(+), 0 deletions(-)
A
serial2tcp@.service
|
17
+++++++++++++++++
diff --git a/serial2tcp@.service b/serial2tcp@.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Serial to TCP gateway.
+Requires=network.target
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+Environment=SERIAL_DEVICE=/dev/%i
+Environment=PORT=2342
+ExecStart=/usr/bin/serial2tcp
+Restart=on-failure
+RestartSec=1
+StandardOutput=journal
+StandardError=journa
+
+[Install]
+WantedBy=multi-user.target