Note that the kerneloops packages communicates with apport using the /usr/share/apport/kernel_oops "pipe" program so a script could be written to make use of similar pipe specifically for respawn failures. Ideally, that kernel_oops utility would be made generic, accepting args to specify the name of the package to report the problem against, etc, and the kerneloops package updated to handle the new interface.
Note that the kerneloops packages communicates with apport using the /usr/share/ apport/ kernel_ oops "pipe" program so a script could be written to make use of similar pipe specifically for respawn failures. Ideally, that kernel_oops utility would be made generic, accepting args to specify the name of the package to report the problem against, etc, and the kerneloops package updated to handle the new interface.