Increase timeout threshold for freshness
This commit is contained in:
parent
879b533b66
commit
1bf6d97cdb
|
@ -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