#!/bin/bash
#logrun
#Date:2017-6-21
#Author:xcn([email protected])
#version 1.0
#bs_error_log
LOGPATH=/application/web/Backstage/log/nginx_error.log
BASEPATH=/data/log/
DATE=`date +%F_%H-%M`
bak=$BASEPATH/$DATE.backstage_error.log
mv $LOGPATH $bak
touch $LOGPATH
kill -USR1 `cat /application/nginx/logs/nginx.pid`