# /etc/systemd/system/socatcm11a.service
[Unit]
Description=socat cm11a
After=network.target
Before=openhab2.service
[Service]
Type=simple
User=root
ExecStart=/usr/bin/socat pty,link=/dev/ttyNET0,group=dialout,mode=0660,rawer tcp:<host>:1243,keepalive
Restart=on-failure
[Install]
WantedBy=multi-user.target
It starts after the network is up and before openhab2 starts.