Its not uncommon for non-common-rail small industrial and marine diesels to have a manual stop lever or pull-knob, connected by bowden cable to the injection pump where it overrides the governor to move the fuel control rack to a cutoff position. Such an engine may be started by hand cranking even if the 'ignition' switch isn't on. The 'ignition' switch if present, only controls power to the gauges, alternator field supply terminal, via the start button to the starter solemoid coil, and possibly to a relay controlled by a preheat button if the engine has glow-plugs fitted.
At its simplest for an engine with electric start and glow-plugs, if a PM alternator is fitted, there may be no switched 'ignition' supply, just a three position momentary keyswitch: Off/Run, Preheat, Start, (spring return to Off/Run) with the (minimal) gauges and/or 'idiot lights' fed from the alternator before the charge controller so they are off with the engine stopped.
Therefore unless the O.P. posts the make and model of his engine and either we can find the wiring diagram from the service manual online, or he has a copy, there's not much we can do to suggest where to pick up an 'ignition' on signal or even an engine running signal.