10 2016 档案

摘要:http://supervisord.org/ 阅读全文
posted @ 2016-10-31 16:58 hao.ma 阅读(107) 评论(0) 推荐(0)
摘要:PROPATH="/var/www/html/" PROGRAM="vertical" LOGNAME="/tmp/monitor.vertical.go.log" while true ; do NUM=`ps aux | grep ${PROGRAM} | grep -v grep | wc -l` echo ${NUM} if [ "${NUM}" -lt "1... 阅读全文
posted @ 2016-10-21 13:47 hao.ma 阅读(171) 评论(0) 推荐(0)
摘要:import Queue class Publish: def removeOldTar(self): cmd='ls ' + self.oss_root_dir + " | awk '{print $5}'" self.debug(cmd) rs=commands.getoutput(cmd) arrList=rs.sp... 阅读全文
posted @ 2016-10-14 17:57 hao.ma 阅读(158) 评论(0) 推荐(0)