Commit f0abe06d authored by Stephan's avatar Stephan
Browse files

add bmxd timeout check

parent 455b35d6
......@@ -128,7 +128,7 @@ case "$ARG1" in
;;
check)
# connection check; if bmxd hangs, kill it
timeout -t 10 -s 9 $DAEMON -ci >/dev/null || killall -9 $DAEMON
timeout -t 10 -s 9 $DAEMON -c --status >/dev/null || killall -9 $DAEMON
test -z "$(pidof $DAEMON)" && logger -s "$DAEMON not running - restart" && $0 restart && exit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment