meta-netmodule-distro/recipes-extended/socket-uart/files/socket-lin.service

22 lines
431 B
Desktop File

[Unit]
Description=Bind lin socket with pseudo tty based on socat
[Service]
Type=simple
ExecStart=/usr/bin/socat-socket-lin
PIDFile=/var/run/socket-lin.pid
Environment=SOCAT_SOCKET_LIN_IP='192.168.1.64' SOCAT_SOCKET_LIN_PORT='2200' SOCAT_SOCKET_LIN_MSS=''
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=10
[Unit]
Wants=network-online.target
After=network-online.target
[Install]
WantedBy=multi-user.target