From e7b28c4a51a695a128624f019938871e220167bb Mon Sep 17 00:00:00 2001 From: iamromulan <50184035+iamromulan@users.noreply.github.com> Date: Fri, 1 Dec 2023 22:13:09 -0500 Subject: [PATCH] Create socat-smd7.service adding option for use of smd7 instead of smd11 --- .../at-telnet/systemd_units/socat-smd7.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 attelnetdaemon/at-telnet/systemd_units/socat-smd7.service diff --git a/attelnetdaemon/at-telnet/systemd_units/socat-smd7.service b/attelnetdaemon/at-telnet/systemd_units/socat-smd7.service new file mode 100644 index 0000000..5cd8326 --- /dev/null +++ b/attelnetdaemon/at-telnet/systemd_units/socat-smd7.service @@ -0,0 +1,13 @@ +[Unit] +Description=Socat Serial Emulation for smd7 +After=ql-netd.service + +[Service] +ExecStart=/usrdata/at-telnet/socat-armel-static -d -d pty,link=/dev/ttyIN,raw,echo=0 pty,link=/dev/ttyOUT,raw,echo=1 +# Add a delay to prevent the clients from starting too early +ExecStartPost=/bin/sleep 2s +Restart=always +RestartSec=1s + +[Install] +WantedBy=multi-user.target