Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
qa-deploy-utils
Commits
2f51d0b8
Commit
2f51d0b8
authored
Aug 15, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp
parent
ce161711
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
5_restart_by_type.sh
qa_shell_script/5_restart_by_type.sh
+1
-1
restartJava.sh
qa_shell_script/base_script/restartJava.sh
+10
-7
No files found.
qa_shell_script/5_restart_by_type.sh
View file @
2f51d0b8
...
...
@@ -27,7 +27,7 @@ function restartJavaProject()
do
echo
"
$config_server
"
echo
"
$project_path
"
sh
$pwd_path
/base_script/restartJava.sh
$project_name
$config_server
$project_path
sh
$pwd_path
/base_script/restartJava.sh
$project_name
$config_server
$project_path
1
# desc=`node $config_server/get_project_config.js -name $project -attr desc`
# run_command=`node $config_server/get_project_config.js -name $project -attr command`
# sh $config_server/show_info.sh $project 重新启动 $desc $1
...
...
qa_shell_script/base_script/restartJava.sh
View file @
2f51d0b8
...
...
@@ -2,6 +2,7 @@
project
=
$1
config_server
=
$2
project_path
=
$3
check_ack
=
$4
profile
=
test
time
=
`
date
+%Y_%m_%d_%H_%M_%S
`
...
...
@@ -94,14 +95,16 @@ if [[ $project == "redpacket" ]]; then
echo
`
java
-Xmx512m
-XX
:PermSize64m
-Xloggc
:/tmp/
${
project
}
.log
-XX
:+PrintGCDetails
-XX
:+PrintGCTimeStamps
-jar
${
project
}
.jar
--worker
1
--currentWorker
1
-t
>
/dev/null 2>&1 &
`
fi
ack
"
$ack_phrase
"
$project_path
/logs/
$log_name
${
max_wait_log_generate_time
}
${
max_wait_ack_time
}
if
[
$?
-ne
0
]
then
echo
"Fail to start"
exit
-1
if
[[
$check_ack
==
"1"
]]
;
then
"dont check logs"
else
ack
"
$ack_phrase
"
$project_path
/logs/
$log_name
${
max_wait_log_generate_time
}
${
max_wait_ack_time
}
if
[
$?
-ne
0
]
then
echo
"Fail to start"
exit
-1
fi
fi
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