forked from qianfangzheng/windiot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop.sh
More file actions
10 lines (10 loc) · 963 Bytes
/
stop.sh
File metadata and controls
10 lines (10 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
PID=$(ps -ef | grep java | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
echo 'adminApplication is already stopped'
else
kill -9 $PID
echo 'adminApplication Stop success'
echo "$PID";
fi