8 lines
178 B
Bash
8 lines
178 B
Bash
![]() |
PID=$(ps -ef | grep yshop-api-1.0.jar | grep -v grep | awk '{ print $2 }')
|
||
|
if [ -z "$PID" ];then
|
||
|
echo Application is already stopped
|
||
|
else
|
||
|
echo kill $PID
|
||
|
kill $PID
|
||
|
fi
|