2022/01/05 06:45:09 socat[26982] N opening character device "/dev/ttyUSB0" for reading and writing
2022/01/05 06:45:09 socat[26982] N listening on AF=2 0.0.0.0:10001
2022/01/05 06:45:30 socat[26982] N accepting connection from AF=2 192.168.1.25:50964 on AF=2 192.168.1.30:10001
2022/01/05 06:45:30 socat[26982] N starting data transfer loop with FDs [5,5] and [7,7]
2022/01/05 06:46:31 socat[26982] W read(7, 0x5afc40, 8192): Connection reset by peer
2022/01/05 06:46:31 socat[26982] N socket 2 to socket 1 is in error
2022/01/05 06:46:31 socat[26982] N socket 2 (fd 7) is at EOF
2022/01/05 06:46:31 socat[26982] N exiting with status 0
Does anyone know how to monitor/restart it in order to get more stability?
I tried various scripts but it didn’t work…
I thought you we‘re looking for something more… well… stable
Joking aside I may have to add that I’m using this script in a docker environment and it is meant to run forever (well at least until container is shut down). The whole point of the loop is that you get a failover if anything breaks. The -T Parameter will force a reconnection after a certain time to recover from a potentially undetected timeout. I may loose a package in this short downtime but my window sensors are not really a matter of life and death…