restore 'reboot' policy

This commit is contained in:
Fredrik Eriksson 2019-12-16 23:12:50 +01:00
parent 32b98e4dbc
commit 712a4e986f
Signed by: feffe
GPG Key ID: 18524638BE25530A

View File

@ -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))