Commit e0098cfd authored by shirenn's avatar shirenn 🌊
Browse files

wait for ips to lauch services

parent 9c4ce6f1
......@@ -4,6 +4,7 @@ import json
import os
import subprocess
import sys
import time
from enum import Enum
path = os.path.dirname(os.path.abspath(__file__))
......@@ -38,6 +39,7 @@ if __name__ == '__main__':
parser.add_argument('STATE', type=State, choices=list(State))
parser.add_argument('PRIORITY', type=int)
args = parser.parse_args()
time.sleep(2)
with open(os.path.join(path, "keepalived.json")) as config_file:
config = json.load(config_file)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment