You said service truck? What kind of service? Do you think it had on board power or compressors for the service it was doing?
As for shutting down diesels, our newer locomotives shut down, usually 5 to 10 minutes after stopping, unless the computer sees certain conditions. For the older locomotives, we manually shut them down when we are done unless we just pulled at full power, then it is 30 minutes after. But, that is a rarity. In winter, if the older locomotives don't have a working APU (Auxiliary Power Unit (Small Diesel Generator and Engine Warmer)), then we leave them running. Of course, if the batteries are weak, they stay running until they get to the nearest shop.