Truck-stop restaurants in some states have shut dining rooms and switched to takeout service to comply with health orders aimed at controlling the spread of the virus. On Tuesday, Pennsylvania closed its state-run rest stops, cutting back significant parking space along key logistics corridors.

Some customers are asking drivers to stay in their trucks or switch from paper to electronic methods to document pickups and deliveries, trucking companies and freight brokers said. Additionally, some trucking companies said their drivers are facing new restrictions at receiving docks if they have been in states considered coronavirus hot zones.

“Some of the shippers and receivers are asking drivers to sign affidavits that they are not sick,” said Linda Allen, owner of Hardcore Trucking, a trucking company based in Spring Hill, Fla., that hauls refrigerated loads.

“They are not allowed to use the restroom, not allowed to use the building,” Ms. Allen said. “They don’t want drivers in the facilities.”