add
This commit is contained in:
parent
a88c9812bf
commit
d2f09bc7c8
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# 找到Springboot项目对应的进程id
|
# 找到Springboot项目对应的进程id
|
||||||
$P_ID=`ps -ef | grep demo4bonus-0.0.1-SNAPSHOT.jar | grep -v grep | awk '{print $2}'`
|
P_ID=`ps -ef | grep -w demo4bonus-0.0.1 | grep -v "grep" | awk '{print $2}'`
|
||||||
# 如果该项目已经在服务器上启动则kill掉
|
# 如果该项目已经在服务器上启动则kill掉
|
||||||
echo “原应用程序进程id:$pid”
|
echo “原应用程序进程id:$P_ID”
|
||||||
if [ "$P_ID" == "" ]; then
|
if [ "$P_ID" == "" ]; then
|
||||||
echo "===service process doest not exist"
|
echo "===service process doest not exist"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue