Ошибка, перезапуск bird2 в цикле.

This commit is contained in:
2025-11-19 12:49:00 +10:00
parent 99b997fac3
commit 123c85ef21

View File

@@ -196,8 +196,6 @@ if __name__ == "__main__":
if os.path.exists(ipv4_out_file) and os.path.getsize(ipv4_out_file) != 0:
print(f"Новый файл выгрузки ipv4 премененён")
os.replace(ipv4_out_file, ipv4_out_file.removesuffix(".tmp"))
# bird2 reload
os.system("systemctl reload bird.service")
# сохраняем ipv6
if ipv6_list:
# собираем комьюнити маршрутов
@@ -212,6 +210,6 @@ if __name__ == "__main__":
if os.path.exists(ipv6_out_file) and os.path.getsize(ipv6_out_file) != 0:
print(f"Новый файл выгрузки ipv6 премененён")
os.replace(ipv6_out_file, ipv6_out_file.removesuffix(".tmp"))
# bird2 reload
os.system("systemctl reload bird.service")
print("")
# bird2 reload
os.system("systemctl reload bird.service")