Detecting Custom App Exit on the conduit.
- This topic has 0 replies, 1 voice, and was last updated 3 years, 1 month ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Conduit: AEP Model › Detecting Custom App Exit on the conduit.
Tagged: Custom App, Exit
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