webui-new/development/socat-at-bridge/systemd_units/socat-smd7-from-ttyIN2.service

15 lines
299 B
SYSTEMD
Raw Normal View History

2025-03-24 22:39:52 +08:00
[Unit]
Description=Read from /dev/ttyIN2 and write to smd7
BindsTo=socat-smd7.service
After=socat-smd7.service
[Service]
ExecStart=/bin/bash -c "/bin/cat /dev/ttyIN2 > /dev/smd7"
ExecStartPost=/bin/sleep 2s
StandardInput=tty-force
Restart=always
RestartSec=1s
[Install]
WantedBy=multi-user.target