Ошибка, перезапуск bird2 в цикле.
This commit is contained in:
@@ -196,8 +196,6 @@ if __name__ == "__main__":
|
|||||||
if os.path.exists(ipv4_out_file) and os.path.getsize(ipv4_out_file) != 0:
|
if os.path.exists(ipv4_out_file) and os.path.getsize(ipv4_out_file) != 0:
|
||||||
print(f"Новый файл выгрузки ipv4 премененён")
|
print(f"Новый файл выгрузки ipv4 премененён")
|
||||||
os.replace(ipv4_out_file, ipv4_out_file.removesuffix(".tmp"))
|
os.replace(ipv4_out_file, ipv4_out_file.removesuffix(".tmp"))
|
||||||
# bird2 reload
|
|
||||||
os.system("systemctl reload bird.service")
|
|
||||||
# сохраняем ipv6
|
# сохраняем ipv6
|
||||||
if ipv6_list:
|
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:
|
if os.path.exists(ipv6_out_file) and os.path.getsize(ipv6_out_file) != 0:
|
||||||
print(f"Новый файл выгрузки ipv6 премененён")
|
print(f"Новый файл выгрузки ipv6 премененён")
|
||||||
os.replace(ipv6_out_file, ipv6_out_file.removesuffix(".tmp"))
|
os.replace(ipv6_out_file, ipv6_out_file.removesuffix(".tmp"))
|
||||||
|
print("")
|
||||||
# bird2 reload
|
# bird2 reload
|
||||||
os.system("systemctl reload bird.service")
|
os.system("systemctl reload bird.service")
|
||||||
print("")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user