implemented log rotate on SIGUSR2