mirror of
https://gitlab.crans.org/nounous/keepalived.git
synced 2024-11-22 02:00:06 +01:00
Don't wait to stop services
This commit is contained in:
parent
e0098cfdf4
commit
fc3ff1ef18
1 changed files with 3 additions and 1 deletions
|
@ -39,6 +39,8 @@ if __name__ == '__main__':
|
||||||
parser.add_argument('STATE', type=State, choices=list(State))
|
parser.add_argument('STATE', type=State, choices=list(State))
|
||||||
parser.add_argument('PRIORITY', type=int)
|
parser.add_argument('PRIORITY', type=int)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if args.STATE == State.MASTER:
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
|
||||||
with open(os.path.join(path, "keepalived.json")) as config_file:
|
with open(os.path.join(path, "keepalived.json")) as config_file:
|
||||||
|
|
Loading…
Reference in a new issue