Okay, no recent hangs, but am running the below script every minute. I'll post or send the results when it catches anything. Let me know if there's anything else I might capture or change.
#!/bin/bash
export HOME="/Users/sejmann"
export PATH="/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin"
{ date;netstat -anL | grep 8089;echo; } >>"${HOME}/Desktop/netstat.log"
if ! nc -z -G 20 127.0.0.1 8089; then
DATE="$(date +%F_%H_%M_%S)"
LOG="${HOME}/Desktop/DVR_HUNG_${DATE}.txt"
exec &> >(sed 's/^\+/\n\n###/g' >>"${LOG}")
echo $DATE
set -x
curl -v http://127.0.0.1:8089/status
tail -n15 "${HOME}/Library/Application Support/ChannelsDVR/data/channels-dvr-http.log"
tail -n15 "${HOME}/Library/Application Support/ChannelsDVR/data/channels-dvr.log"
lsof -nPp $(pgrep channels-dvr)
netstat -an
netstat -nt | grep 8089
netstat -anL
netstat -s
sysctl kern.ipc.somaxconn
netstat -anL | grep 8089
curl http://127.0.0.1:58089/status
if [[ $? -eq 0 ]]; then
curl -XPUT http://127.0.0.1:58089/updater/force/restart
else
pkill -QUIT channels-dvr
fi
fi