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.
mens-traffic-parent/shell/stopEnsApi.sh

14 lines
289 B
Bash

1 year ago
#!/bin/sh
PID=`ps -ef | grep java | grep ens-api- | awk '{print $2}'`
echo "Process ID: $PID"
if [ -z $PID ]; then
echo "No process is running"
else
echo "Kill process"
kill $PID
echo "========================="
echo "mens-api deamon stop"
echo "========================="
fi