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
3e6e0153
Commit
3e6e0153
authored
Feb 22, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改entrypoint并增加debug日志
parent
6b984aac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
entrypoint.sh
entrypoint.sh
+8
-4
jms
jms
+13
-2
No files found.
entrypoint.sh
View file @
3e6e0153
...
...
@@ -2,15 +2,19 @@
function
cleanup
()
{
local
pids
=
`
jobs
-p
`
if
[[
"
$
pids
"
!=
""
]]
;
then
kill
$
pids
>
/dev/null 2>/dev/null
if
[[
"
$
{
pids
}
"
!=
""
]]
;
then
kill
$
{
pids
}
>
/dev/null 2>/dev/null
fi
}
service
=
"all"
if
[
"
$1
"
!=
""
]
;
then
if
[
[
"
$1
"
!=
""
]
]
;
then
service
=
$1
fi
if
[[
"
$1
"
==
"bash"
]]
;
then
bash
fi
trap
cleanup EXIT
python jms start
$
service
python jms start
$
{
service
}
jms
View file @
3e6e0153
...
...
@@ -10,9 +10,20 @@ import sys
import
signal
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
sys
.
path
.
append
(
BASE_DIR
)
sys
.
path
.
insert
(
0
,
BASE_DIR
)
from
apps
import
__version__
try
:
from
apps
import
__version__
except
ImportError
as
e
:
print
(
"Not found __version__: {}"
.
format
(
e
))
print
(
"Sys path: {}"
.
format
(
sys
.
path
))
__version__
=
'Unknown'
try
:
import
apps
print
(
"List apps: {}"
.
format
(
os
.
listdir
(
'apps'
)))
print
(
'apps is: {}'
.
format
(
apps
))
except
:
pass
try
:
from
apps.jumpserver.conf
import
load_user_config
...
...
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