We had some power hiccups during a windstorm. My Raspberry Pi stayed up, but I think there was a network hiccup and the connection stopped working. I saw this in the Darkice log:
It looks like it was in a weird state where the TCP/IP connection was up, but not responding properly.
I ran the BCFY shell and restarted the Darkice service/instance, and it was fine. But I was surprised the software wasn't able to recover from this itself.
I was thinking about writing my own shell script, using the systemctl commands from the BCFY shell, to monitor the service status and periodically try to restart the Darkice service/instance if it appears to be down. And maybe, after several Darkice service auto-restarts within a certain time period, reboot the whole Raspberry Pi computer.
Thought/feedback? Maybe someone has already done something similar?
Thanks in advance
Ben
CSX Metropolitan Line - Kensington Live Audio Feed (yes, there's a buzz I'm trying to get rid of)
It looks like it was in a weird state where the TCP/IP connection was up, but not responding properly.
I ran the BCFY shell and restarted the Darkice service/instance, and it was fine. But I was surprised the software wasn't able to recover from this itself.
I was thinking about writing my own shell script, using the systemctl commands from the BCFY shell, to monitor the service status and periodically try to restart the Darkice service/instance if it appears to be down. And maybe, after several Darkice service auto-restarts within a certain time period, reboot the whole Raspberry Pi computer.
Thought/feedback? Maybe someone has already done something similar?
Thanks in advance
Ben
CSX Metropolitan Line - Kensington Live Audio Feed (yes, there's a buzz I'm trying to get rid of)