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

Don't wait to stop services

parent e0098cfd
......@@ -39,7 +39,9 @@ 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)
if args.STATE == State.MASTER:
time.sleep(2)
with open(os.path.join(path, "keepalived.json")) as config_file:
config = json.load(config_file)
......
Supports Markdown
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