mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Do not miserably fail if no oom_reaper line found...
This commit is contained in:
parent
fad373c016
commit
9640b22a23
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ class SystemResourcesDiagnoser(Diagnoser):
|
|||
|
||||
def analyzed_kern_log():
|
||||
|
||||
cmd = 'tail -n 10000 /var/log/kern.log | grep "oom_reaper: reaped process"'
|
||||
cmd = 'tail -n 10000 /var/log/kern.log | grep "oom_reaper: reaped process" || true'
|
||||
out = subprocess.check_output(cmd, shell=True)
|
||||
lines = out.strip().split("\n")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue