版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_37155959/article/details/82143115
p:
ps -ef | grep my-client.jar | grep -v 'grep'
shutdown.sh
kill -9 `ps -ef | grep 'comp-nm-ivr-client.jar' | grep -v 'grep' |awk '{print $2}'`
start
/opt/aspire/product/my_client/jdk1.7.0_80/bin/java -Xrunjdwp:transport=dt_socket,address=21789,server=y,suspend=n -jar -Djasypt.encryptor.password=my_client my-client.jar >nohup.out & tail -f nohup.out
简化start命令
java -jar comp-nm-ivr-client.jar >> service.log
jboss后台启动process_restart.sh
“`
!/bin/bash
name=whoami
PROID=
name|grep ‘7.1.1-jboss’|grep ‘configuration’|grep ‘-XX’|awk ‘{print
3}’)
BIN=/opt/aspire/product/ppsnm/7.1.1-jboss/bin
PTH=/opt/aspire/product/ppsnm/7.1.1-jboss/standalone/
DISK_C=
{DISK_C%%%}
if [ “$DISK_C1” -gt “98” ] ;then
echo “the free_disk is too small,which will effect you restart process!!”
exit 1
fi
cd
PROID” ];then
sh /opt/aspire/product/ppsnm/7.1.1-jboss/bin/start
else
PROID=
PROID”)
kill -9
PTH
rm -rf data/ tmp/
cd $BIN
sh /opt/aspire/product/ppsnm/7.1.1-jboss/bin/start
fi
···