DevTerm/Code/thermal_printer/etc/systemd/system/devterm-socat.service
2021-03-29 19:32:40 +08:00

14 lines
300 B
Desktop File

[Unit]
Description=socat as virtual serial port
[Service]
Type=simple
ExecStart=socat -d -d pty,link=/tmp/DEVTERM_PRINTER_OUT,raw,echo=0 pty,link=/tmp/DEVTERM_PRINTER_IN,raw,echo=0
ExecStartPost=/usr/local/bin/devterm_socat.sh
Restart=on-failure
RestartSec=2
[Install]
WantedBy=multi-user.target