There are several ways to automatically start and stop a genset:
It is also possible to combine above mentioned methods, by wiring the open contacts in parallel to each other.
For example Cummins/Onan gensets.
To start such a genset, the open/close contact needs to be converted into a start and stop pulse. Below solution, using standard available timing relays, does exactly that: when the open/close contact closes it generates the start pulse, and when the open/close contact opens again it generates the stop pulse.
Note that this solution should only be used on gensets that have their OWN control panel monitoring and automatically stopping on loss of oil pressure and other sensors. In other words: do not wire this directly to the starter motor and fuel solenoid.