From b6dc7b39eadbbf93a75046259888639850dce36d Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Fri, 12 Apr 2019 21:07:40 +0200 Subject: [PATCH] do not recommend restart for 'warn' policy services --- sau/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sau/services.py b/sau/services.py index bd110a6..a049c6e 100644 --- a/sau/services.py +++ b/sau/services.py @@ -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