waiting in line is correct. for eg., I am waiting in line to buy movie tickets. waiting on line is not a correct semantically incorrect. Although "waiting online" (without space between on & line) might make a meaningful sentence. "waiting online" means Waiting for some on over the internet.