kill with code update, socat change

This commit is contained in:
BennyThink 2022-02-09 14:37:40 +08:00
parent 8aeca9b0f0
commit 46827fd683
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ version: '3.1'
services:
socat:
image: jmb12686/socat
image: bennythink/socat
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock

View File

@ -197,7 +197,7 @@ class Detector:
def updates_too_long_detector(self):
# If you're seeing this, that means you have logged more than 10 device
# and this earliest account was kicked out. Restart the program could get you back in.
indicators = ["types.UpdatesTooLong", "Got shutdown from remote"]
indicators = ["types.UpdatesTooLong", "Got shutdown from remote", "Code is updated"]
for indicator in indicators:
if indicator in self.logs:
logging.warning("Potential crash detected by %s, it's time to commit suicide...", self.func_name())