Get console, right chmod for PID file, delete useless comments