Increase timeout threshold for freshness
This commit is contained in:
parent
879b533b66
commit
1bf6d97cdb
|
@ -7,7 +7,7 @@ import re
|
|||
import json
|
||||
|
||||
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:
|
||||
exit(2)
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in New Issue