Detecting Custom App Exit on the conduit.

Home Forums Conduit: AEP Model Detecting Custom App Exit on the conduit.

Tagged: ,

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #32158
    Ajay K
    Participant

    We have a Custom App built based on node JS and currently we are on Conduit firmware version 5.2.5. Is there a way to determine the exit of the custom App so some housekeeping operations that can be executed when the custom app is being stopped via the Admin UI, before the custom app process is either killed or terminated?

    I have subscribed to the following functions and none of them seem to get triggered when stopping the Custom App from the Conduit Admin UI page referred to the URL: https://192.168.2.1/applications

    process.on('exit', function(code) {
      console.log('Process exited with code ' + code);
    });
    
    process.on('SIGINT', function() {
      console.log('Process Interrupted, exiting...');
    });
    
    process.on('uncaughtException', function(err) {
      //log the error and see what caused the undhandled exception.
      console.log("Caught Unhandled Exception: " + err);
    });

    Thanks,
    Ajay

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.