ruby: support SIGUSR1 signal to reopen log file