Changing the command to grep if server is started and listening