To an extent, you just have to stop, yk? And accept that there will be some crying. You could stroke his head or even pat him until he's calm, but stop (not suddenly) as soon as he's calm and before he's gone to sleep. The first few nights will be hard, but he will sleep, eventually.