Skip to content

Commit 4f753a5

Browse files
authored
add BlockEngineFailure
1 parent 60d6408 commit 4f753a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

guard.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,12 @@ COPY_TOWER(){ # copy tower file from PRIMARY to SECONDARY
515515

516516

517517
RELAYER_SERVICE_NAME="relayer.service"
518-
RELAYER_ERRORS="aoi updates disconnected|block engine failed|error authenticating and connecting|block_engine_relayer-error"
518+
RELAYER_ERRORS="aoi updates disconnected|block engine failed|error authenticating and connecting|BlockEngineFailure"
519519
CHECK_RELAYER(){ # check relayer service on current server
520520
if [[ $RELAYER_SERVICE == 'true' ]]; then
521521
if systemctl is-active --quiet "$RELAYER_SERVICE_NAME"; then
522-
MATCHES=$(journalctl -u "$RELAYER_SERVICE_NAME" --since "1 seconds ago" | grep -E "$RELAYER_ERRORS")
522+
LOG "Relayer is active"
523+
MATCHES=$(journalctl -u "$RELAYER_SERVICE_NAME" --since "3 seconds ago" | grep -E "$RELAYER_ERRORS")
523524
if [[ -n "$MATCHES" ]]; then
524525
LOG "Detected relayer conflict: $MATCHES"
525526
fi

0 commit comments

Comments
 (0)