You can not 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
|
|
|
|
port=8080
|
|
|
|
pid=$(netstat -nlp | grep :$port | awk '{print $7}' | awk -F"/" '{ print $1 }');
|
|
|
|
if [ -n "$pid" ]; then
|
|
kill -9 $pid;
|
|
echo "KM service stopped."
|
|
fi
|
|
|