Closed svaroqui closed 3 weeks ago
We should not this anymore and not destroy client info
error) cat $ERROLOG | socat -u stdio TCP:$ADDRESS &>"/tmp/$job.out" >$ERROLOG ;; slowquery) cat $SLOWLOG | socat -u stdio TCP:$ADDRESS &>"/tmp/$job.out" >$SLOWLOG ;;
cat $ERROLOG >> $ERRROLOG_$(date '+%Y-%m-%d') cat $ERROLOG | socat -u stdio TCP:$ADDRESS &>"/tmp/$job.out" if [ -f $ERRROLOG_$(date -d "1 day ago" '+%Y-%m-%d') ] gzip $ERRROLOG_$(date -d "1 day ago" '+%Y-%m-%d') fi if [ -f $ERRROLOG_$(date -d "8 day ago" '+%Y-%m-%d').gz ] rm -f $ERRROLOG_$(date -d "8 day ago" '+%Y-%m-%d').gz fi
Well, it does not stop truncating. But at least it store in different file. :D
I was thinking about not touching the file. But this is good. We will not need to calculate in replication-manager.
We should not this anymore and not destroy client info