推荐

2012年10月24日

服务管理程序,检测服务是否存在,如果不存在,启动它

摘要: 1 #!/bin/bash 2 3 PS=/bin/ps 4 PS_OPTION=auxwww 5 KILL=/bin/kill 6 7 date=`date +%F` 8 time=`date +%X` 9 10 cd /home/publish/projects/gsps/src/daemon/qspider11 14 line=`$PS $PS_OPTION | grep qspider_daemon | grep -v grep`15 16 if test "$line"17 then18 pid=`... 阅读全文

posted @ 2012-10-24 13:53 高华 阅读(368) 评论(0) 推荐(0) 编辑

导航