logfile: handle log output to file with reopen on USR1