2005 Ford F350 won’t restart

my fathers ford 350 diesel 6.0 littre will not restart as soon as the motor is hot, if its cold it starts right up , what would cause this problem . thank you

try this