1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Increase OMR API check

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-10-27 08:26:54 +00:00
parent da1a6c3560
commit 25b68f6228

View file

@ -30,7 +30,7 @@ _glorytun_tcp() {
} }
_omr_api() { _omr_api() {
[ -z "$(curl -s -k -m 3 https://127.0.0.1:65500/)" ] && { [ -z "$(curl -s -k -m 30 https://127.0.0.1:65500/)" ] && {
logger -t "OMR-Service" "Restart OMR-Admin" logger -t "OMR-Service" "Restart OMR-Admin"
systemctl -q restart omr-admin systemctl -q restart omr-admin
} }