properly log processes which still has open files after restart
This commit is contained in:
parent
8d373f599c
commit
f1ded26b9f
@ -177,7 +177,7 @@ def restart_services():
|
|||||||
if get_deleted_open_files(proc):
|
if get_deleted_open_files(proc):
|
||||||
service = services[proc_name]
|
service = services[proc_name]
|
||||||
policy = _get_service_restart_policy(service)
|
policy = _get_service_restart_policy(service)
|
||||||
_warn(policy, f'{proc} still has deleted files open')
|
log.warning(f'{proc} still has deleted files open')
|
||||||
recommend_restart = True
|
recommend_restart = True
|
||||||
return recommend_restart
|
return recommend_restart
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user