This would be something like an inline solenoid activated shut off/on device. Readily available at any gas shop. In the event of a power loss you might have to manually open a bypass though.
Have you contacted you local gas suplier, they will give the options.