The engine is not on while serving. However, most trucks do have gasoline powered generators. The city does have a legitimate interest in regulating the usage of shared space but the way it is done now is like it was designed by the Soviet Union.
Also, the trucks mostly target the office lunch crowd, not tourists.