added rotating stdout file when daemonizing