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
87d5b6c4
Commit
87d5b6c4
authored
Oct 08, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改启动脚本
parent
6b377ec5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
jms
jms
+9
-5
No files found.
jms
View file @
87d5b6c4
...
...
@@ -100,7 +100,7 @@ def collect_static():
os
.
chdir
(
os
.
path
.
join
(
BASE_DIR
,
'apps'
))
command
=
'python3 manage.py collectstatic --no-input -c &> /dev/null '
subprocess
.
call
(
command
,
shell
=
True
)
logging
.
info
(
"Collect static file done"
)
logging
.
info
(
"Collect static file
s
done"
)
def
prepare
():
...
...
@@ -292,11 +292,12 @@ def watch_services():
p
.
wait
(
timeout
=
1
)
except
subprocess
.
TimeoutExpired
:
pass
if
p
.
returncode
is
not
None
:
ok
=
is_running
(
s
)
if
not
ok
:
stopped_services
[
s
]
=
''
print
(
"stopped
"
)
print
(
"stopped
with code: {}({})"
.
format
(
p
.
returncode
,
p
.
pid
)
)
else
:
print
(
"running
"
)
print
(
"running
at {}"
.
format
(
p
.
pid
)
)
stopped_services
.
pop
(
s
,
None
)
services_retry
.
pop
(
s
,
None
)
...
...
@@ -320,7 +321,10 @@ def watch_services():
if
tm
!=
'23:59'
:
return
suffix
=
now
.
strftime
(
'
%
Y-
%
m-
%
d'
)
for
s
in
processes
:
services
=
list
(
processes
.
keys
())
services
.
append
(
'jms'
)
for
s
in
services
:
log_path
=
get_log_file_path
(
s
)
log_dir
=
os
.
path
.
dirname
(
log_path
)
filename
=
os
.
path
.
basename
(
log_path
)
...
...
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