simple daemaon creation with log file