查看apache进程
时间:2010-12-10 来源:shellkiller
检查http进程是否存在的小脚本,可以说成linux命令的集合 -_-!!!
#!/bin/bash
while :
do
if ps aux |grep http|grep -v root > /dev/null
then echo qidongla
else
service httpd restart
fi
sleep 60 done
while :
do
if ps aux |grep http|grep -v root > /dev/null
then echo qidongla
else
service httpd restart
fi
sleep 60 done
相关阅读 更多 +