#!/bin/sh
pidno=`ps -ef | grep -e javaApplicationName | grep -v grep | awk '{print $2}'`
kill -9 $pidno
./javaApplicationName.sh
echo `date` - restarting ais>> restart.log
pidno=`ps -ef | grep -e javaApplicationName | grep -v grep | awk '{print $2}'`
kill -9 $pidno
./javaApplicationName.sh
echo `date` - restarting ais>> restart.log