全部博文(535)
分类: LINUX
2011-02-15 09:53:13
01.#!/bin/bash 02.while : 03.do 04.nginxpid=`ps -C nginx --no-header | wc -l` 05.if [ $nginxpid -eq 0 ];then 06./usr/local/nginx/sbin/nginx 07.sleep 5 08.if [ $nginxpid -eq 0 ];then 09./etc/init.d/keepalived stop 10.fi 11.fi 12.sleep 5 13.donechinaunix网友2011-03-05 13:45:52
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com