From 712a4e986f422033e1e6b032ac052970fa36b862 Mon Sep 17 00:00:00 2001 From: Fredrik Eriksson Date: Mon, 16 Dec 2019 23:12:50 +0100 Subject: [PATCH] restore 'reboot' policy --- sau/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sau/services.py b/sau/services.py index f19f92e..1b1dc9c 100644 --- a/sau/services.py +++ b/sau/services.py @@ -165,7 +165,7 @@ def _get_service_restart_policy(service): log = logging.getLogger(sau.LOGNAME) conf = sau.config policy = conf.get('services', service, fallback=None) - if policy and policy.lower() in ('restart', 'warn', 'ignore', 'silent-restart', 'silent-reboot'): + if policy and policy.lower() in ('restart', 'warn', 'ignore', 'silent-restart', 'reboot', 'silent-reboot'): return policy.lower() elif policy: log.warning('service policy {} for {} is invalid'.format(policy, service))