Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nounous
keepalived
Commits
fc3ff1ef
Commit
fc3ff1ef
authored
Jan 30, 2022
by
shirenn
🌊
Browse files
Don't wait to stop services
parent
e0098cfd
Changes
1
Hide whitespace changes
Inline
Side-by-side
keepalived.py
View file @
fc3ff1ef
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment