标签:pidfile bin 存在 kill lin pid for world echo
#!/bin/sh
for i in `seq 1 3`
do
pidfile_="worldd${i}.pid"
if [ -f ${pidfile_} ]; then
pid_=`cat ${pidfile_}`
rm -f ${pidfile_}
echo -n "killing worldd ${i}, pid ${pid_} .."
kill -9 ${pid_}
fi
done
echo "Done."
标签:pidfile bin 存在 kill lin pid for world echo
原文地址:http://www.cnblogs.com/wsswlyy/p/7102429.html