17 lines
340 B
Bash
17 lines
340 B
Bash
#!/bin/sh
|
|
|
|
cd `dirname $0`/../target
|
|
target_dir=`pwd`
|
|
|
|
pid=`ps ax | grep -i 'per-ftp' | grep ${target_dir} | grep java | grep -v grep | awk '{print $1}'`
|
|
if [ -z "$pid" ] ; then
|
|
echo "No per-ftp running.."
|
|
exit 0;
|
|
fi
|
|
|
|
echo "The per-ftp(${pid}) is running..."
|
|
|
|
kill ${pid}
|
|
|
|
echo "Send shutdown request to per-ftp(${pid}) OK"
|