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
f10e1967
Commit
f10e1967
authored
Dec 04, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kill -9
parent
35f45161
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
restartJava.sh
qa_shell_script/base_script/restartJava.sh
+1
-1
restartPython.sh
qa_shell_script/base_script/restartPython.sh
+1
-1
No files found.
qa_shell_script/base_script/restartJava.sh
View file @
f10e1967
...
@@ -77,7 +77,7 @@ cd $project_path/$project
...
@@ -77,7 +77,7 @@ cd $project_path/$project
P_UUID
=
`
ps
-ef
|grep
${
project
}
.jar |grep
-v
'grep'
|awk
'{print $2}'
`
P_UUID
=
`
ps
-ef
|grep
${
project
}
.jar |grep
-v
'grep'
|awk
'{print $2}'
`
if
[
-n
"
${
P_UUID
}
"
]
;
then
if
[
-n
"
${
P_UUID
}
"
]
;
then
echo
"Kill
$project
PPID=
${
P_UUID
}
"
echo
"Kill
$project
PPID=
${
P_UUID
}
"
kill
${
P_UUID
}
kill
-9
${
P_UUID
}
sleep
2s
sleep
2s
fi
fi
...
...
qa_shell_script/base_script/restartPython.sh
View file @
f10e1967
...
@@ -15,7 +15,7 @@ python_project_path=$project_path/$project${setup_path_temp/\.\//\/}
...
@@ -15,7 +15,7 @@ python_project_path=$project_path/$project${setup_path_temp/\.\//\/}
P_UUID
=
`
ps
-ef
|grep
port
=
$port
|grep
-v
'grep'
|awk
'{print $2}'
`
P_UUID
=
`
ps
-ef
|grep
port
=
$port
|grep
-v
'grep'
|awk
'{print $2}'
`
if
[[
"
${
P_UUID
}
"
!=
""
]]
;
then
if
[[
"
${
P_UUID
}
"
!=
""
]]
;
then
echo
"KILL
$project
PPID=
${
P_UUID
}
"
echo
"KILL
$project
PPID=
${
P_UUID
}
"
kill
${
P_UUID
}
kill
-9
${
P_UUID
}
sleep
3
sleep
3
fi
fi
mv
$project_path
/logs/
${
project
}
.log
$project_path
/logs/
${
project
}
.log.
$time
mv
$project_path
/logs/
${
project
}
.log
$project_path
/logs/
${
project
}
.log.
$time
...
...
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