selfcheck.py: check clever.service failed to run

This commit is contained in:
Oleg Kalachev
2019-09-05 18:03:59 +03:00
parent d2c201dba4
commit 5071139d09

View File

@@ -626,8 +626,10 @@ def check_clever_service():
failure('systemctl returned %s: %s', e.returncode, e.output)
return
if 'inactive' in output:
failure('clever.service is not running, try sudo systemctl restart clever')
failure('service is not running, try sudo systemctl restart clever')
return
elif 'failed' in output:
failure('service failed to run')
try:
from systemd import journal