写了一个简单的管理ttserver启动和停止的脚本,谁知重启机器后,就出现:
2010-12-07T22:52:00+08:00 ERROR the process 5313 may be already running仔细查看后,进程中也没有ttserver啊,谷歌一下,哦,原来进程文件还存在,删除就OK了,
简单管理进程脚本:
- #!/bin/sh
-
-
case $1 in
-
start)
-
ulimit -SHn 51200
-
/home/tt/bin/ttserver -host 192.168.0.26 -port 11211 \
-
-thnum 8 \
-
-dmn \
-
-pid /home/tt/ttserver.pid \
-
-log /home/tt/ttserver.log \
-
-ld \
-
-ulog /index2/ \
-
-ulim 128m \
-
-sid 1 \
-
-rts /index2/ttserver.rts \
-
/home/tt/database.tch
-
;;
-
stop)
-
kill -TERM `pgrep ttserver`
-
;;
-
*)
-
echo "Uasge: $0 start | stop"
-
;;
-
esac
阅读(1870) | 评论(0) | 转发(0) |