You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
|
|
pid=`ps -ef | grep short-server-service-1.0-SNAPSHOT | grep -v grep| awk '{print $2}'`
|
|
|
|
if [ -z "$pid" ];
|
|
then
|
|
echo "Application is already stopped" $pid
|
|
else
|
|
echo $pid is killed
|
|
kill -9 $pid
|
|
fi
|