prevent freezer from stopping defrost timer

This commit is contained in:
Kevin Veen-Birkenbach 2023-12-14 22:07:17 +01:00
parent 3ea927099c
commit e17cb20123

View File

@ -51,6 +51,8 @@ def stop_timer(service):
""" """
Stop and disable a systemd timer for a service if it exists. Stop and disable a systemd timer for a service if it exists.
""" """
if service == "system-maintenance-service-defrost":
print(f"Ignoring {service}. It's the initializer of freezer.")
if service_file_exists(service, "timer"): if service_file_exists(service, "timer"):
timer_name = f"{service}.timer" timer_name = f"{service}.timer"
subprocess.run(['systemctl', 'stop', timer_name]) subprocess.run(['systemctl', 'stop', timer_name])