Commit 1c8e6a2e authored by root's avatar root
Browse files

better retart check

parent aa92c47d
......@@ -20,5 +20,12 @@ ${FWC} 2>&1 |grep "out of range" -q && \
(hub-ctrl -h 0 -P 2 -p 0; sleep 5; hub-ctrl -h 0 -P 2 -p 1; sleep 5; service frewe-client restart )
service frewe-client status|grep " active" || service frewe-client restart
service frewe-client status|grep "exited" && service frewe-client restart
if service frewe-client status|grep "exited"; then
if service frewe-client restart; then
echo restarted
else
killall -9 /usr/local/bin/frewe-client
service frewe-client start
fi
fi
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