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
eee6dd14
Commit
eee6dd14
authored
Jan 21, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of github.com:jumpserver/jumpserver into dev
parents
27693c62
384cdfbc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
settings.py
apps/jumpserver/settings.py
+2
-3
entrypoint.sh
entrypoint.sh
+6
-1
jms
jms
+3
-1
No files found.
apps/jumpserver/settings.py
View file @
eee6dd14
...
...
@@ -25,9 +25,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
PROJECT_DIR
=
os
.
path
.
dirname
(
BASE_DIR
)
CONFIG
=
load_user_config
()
LOG_DIR
=
os
.
path
.
join
(
PROJECT_DIR
,
'logs'
)
HOSTNAME
=
socket
.
gethostname
()
JUMPSERVER_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'jumpserver-{}.log'
.
format
(
HOSTNAME
))
ANSIBLE_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'ansible-{}.log'
.
format
(
HOSTNAME
))
JUMPSERVER_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'jumpserver.log'
)
ANSIBLE_LOG_FILE
=
os
.
path
.
join
(
LOG_DIR
,
'ansible.log'
)
if
not
os
.
path
.
isdir
(
LOG_DIR
):
os
.
makedirs
(
LOG_DIR
)
...
...
entrypoint.sh
View file @
eee6dd14
...
...
@@ -7,5 +7,10 @@ function cleanup()
fi
}
service
=
"all"
if
[
"
$1
"
!=
""
]
;
then
service
=
$1
fi
trap
cleanup EXIT
python jms start
all
python jms start
$service
jms
View file @
eee6dd14
...
...
@@ -120,6 +120,8 @@ def is_running(s, unlink=True):
def
parse_service
(
s
):
if
s
==
'all'
:
return
all_services
elif
","
in
s
:
return
[
i
.
strip
()
for
i
in
s
.
split
(
','
)]
else
:
return
[
s
]
...
...
@@ -316,7 +318,7 @@ if __name__ == '__main__':
)
parser
.
add_argument
(
"service"
,
type
=
str
,
default
=
"all"
,
nargs
=
"?"
,
choices
=
(
"all"
,
"gunicorn"
,
"celery"
,
"beat"
),
choices
=
(
"all"
,
"gunicorn"
,
"celery"
,
"beat"
,
"celery,beat"
),
help
=
"The service to start"
,
)
parser
.
add_argument
(
'-d'
,
'--daemon'
,
nargs
=
"?"
,
const
=
1
)
...
...
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