Linux检测websphere进程宕机后自动重启脚本
[root@db~]# crontab -l#* * * * * ~/websphere_auto_restart.sh[root@db ~]# cat websphere_auto_restart.sh#!/bin/bashpgrep -l java >> ./java.logLINE=`pgrep -l java|wc -l`if [ $LINE -eq 0 ]; th
原创
2016-03-23 20:22:08 ·
1087 阅读 ·
0 评论