Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
2156e0f5
Commit
2156e0f5
authored
Mar 19, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改jms
parent
d8e614c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
jms
jms
+10
-4
No files found.
jms
View file @
2156e0f5
...
@@ -29,6 +29,7 @@ HTTP_PORT = CONFIG.HTTP_LISTEN_PORT or 8080
...
@@ -29,6 +29,7 @@ HTTP_PORT = CONFIG.HTTP_LISTEN_PORT or 8080
DEBUG
=
CONFIG
.
DEBUG
DEBUG
=
CONFIG
.
DEBUG
LOG_LEVEL
=
CONFIG
.
LOG_LEVEL
LOG_LEVEL
=
CONFIG
.
LOG_LEVEL
START_TIMEOUT
=
15
WORKERS
=
4
WORKERS
=
4
DAEMON
=
False
DAEMON
=
False
...
@@ -214,11 +215,16 @@ def start_service(s):
...
@@ -214,11 +215,16 @@ def start_service(s):
p
=
func
()
p
=
func
()
processes
.
append
(
p
)
processes
.
append
(
p
)
time
.
sleep
(
5
)
now
=
int
(
time
.
time
()
)
for
i
in
services_set
:
for
i
in
services_set
:
if
not
is_running
(
i
):
while
not
is_running
(
i
):
print
(
"Error: {} start error"
.
format
(
i
))
if
int
(
time
.
time
())
-
now
<
START_TIMEOUT
:
stop_multi_services
(
services_set
)
time
.
sleep
(
1
)
continue
else
:
print
(
"Error: {} start error"
.
format
(
i
))
stop_multi_services
(
services_set
)
return
stop_event
=
threading
.
Event
()
stop_event
=
threading
.
Event
()
...
...
Write
Preview
Markdown
is supported
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