do not recommend restart for 'warn' policy services

This commit is contained in:
Fredrik Eriksson 2019-04-12 21:07:40 +02:00
parent 505b39612c
commit b6dc7b39ea
No known key found for this signature in database
GPG Key ID: 8825C73A0FD1502A

View File

@ -165,7 +165,7 @@ def restart_services():
continue
elif name in services:
policy = _get_service_restart_policy(services[name])
if policy == 'ignore':
if policy in ('ignore', 'warn'):
continue
log.warning('{} still has deleted files open'.format(proc))
recommend_restart = True