I had a similar problem about a year ago. My 07 5.9 cummins would turn over about 1/4 turn and stop. You could continue to crank on it and after about 10 seconds it would fire off. I had good batteries so I replaced the starter thinking it might be the problem. Few days went by and it started doing it again. I finally tracked it back to a bad battery cable connection. Once it was cleaned and tightened up that fixed the issue. Not sure if this could be your problem but wanted to share my experience with a similar problem.