do not recommend restart for 'warn' policy services
This commit is contained in:
parent
505b39612c
commit
b6dc7b39ea
@ -165,7 +165,7 @@ def restart_services():
|
|||||||
continue
|
continue
|
||||||
elif name in services:
|
elif name in services:
|
||||||
policy = _get_service_restart_policy(services[name])
|
policy = _get_service_restart_policy(services[name])
|
||||||
if policy == 'ignore':
|
if policy in ('ignore', 'warn'):
|
||||||
continue
|
continue
|
||||||
log.warning('{} still has deleted files open'.format(proc))
|
log.warning('{} still has deleted files open'.format(proc))
|
||||||
recommend_restart = True
|
recommend_restart = True
|
||||||
|
Loading…
Reference in New Issue
Block a user