Increase timeout threshold for freshness
This commit is contained in:
parent
00482aec06
commit
08c8be66b3
|
@ -7,7 +7,7 @@ import re
|
||||||
import json
|
import json
|
||||||
|
|
||||||
try:
|
try:
|
||||||
nrout = subprocess.run(["/usr/sbin/needrestart", "-b"], timeout=5, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
nrout = subprocess.run(["/usr/sbin/needrestart", "-b"], timeout=15, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
except subprocess.TimeoutExpired:
|
except subprocess.TimeoutExpired:
|
||||||
exit(2)
|
exit(2)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in New Issue