gamedb:/data/script/shell # cat cut_cncgcg_log.sh
#!/bin/sh
set -x
#data=`date +%Y%m%d`
data=`date +%Y%m%d%H%M`
cncgcg_log_dir=/var/logs/web/cncgcg.com
cut_cncgcg_log_dir=/var/logs/web/cncgcg.com/cncgcg_log
cd $cncgcg_log_dir
mv www.cncgcg.log $cut_cncgcg_log_dir/www.cncgcg.log.$data
cd $cut_cncgcg_log_dir
zip www.cncgcg.log.$data.zip www.cncgcg.log.$data
#rm -rf www.cncgcg.log.$data
kill -USR1 `cat /opt/nginx/nginx.pid`


kill -USR1 `cat /opt/nginx/nginx.pid`

095601892.jpg