From eebf44d74290dd2ef5825088a976176057e5be17 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 14 Dec 2023 02:05:22 +0100 Subject: [PATCH] reduced stati when service is seen as active --- .../files/system-maintenance-service-freezer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/system-maintenance-service-freezer/files/system-maintenance-service-freezer.py b/roles/system-maintenance-service-freezer/files/system-maintenance-service-freezer.py index 57d9579b..494b9440 100644 --- a/roles/system-maintenance-service-freezer/files/system-maintenance-service-freezer.py +++ b/roles/system-maintenance-service-freezer/files/system-maintenance-service-freezer.py @@ -20,7 +20,7 @@ def check_service_active(service_name): """Check if a service is active or activating.""" result = subprocess.run(['systemctl', 'is-active', service_name], stdout=subprocess.PIPE) service_status = result.stdout.decode('utf-8').strip() - return service_status in ['active', 'activating', 'deactivating', 'reloading'] + return service_status in ['active', 'activating'] def freeze(services_to_wait_for, ignored_services): # Filter services that exist and are not in the ignored list