#!/bin/bash
PID=$(ps -ef | grep qcl80.jar | grep -v grep | awk '{ print $2 }')
if [ -z "$PID" ]
then
echo Application is already stopped
else
echo kill $PID
kill $PID
fi
#!/bin/bash
echo stop application
source stop.sh
echo start application
source start.sh
chmod u+x *.sh 这样就ok了。