Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to catch process exit signals #145

Open
cboyle123 opened this issue Oct 18, 2024 · 0 comments
Open

How to catch process exit signals #145

cboyle123 opened this issue Oct 18, 2024 · 0 comments

Comments

@cboyle123
Copy link

We have a node app running with IIS node that needs to do some resource cleanup on shutdown. We have tried the following event listeners:

        process.on('SIGINT', handle);
	process.on('SIGTERM', handle);
	process.on('SIGHUP', handle);
	process.on('exit', handle);

We haven't been able to get any of these events to fire resulting in resources not being cleaned up and causing issue on our VM.

Is there any other way to detect node shutdown in iisnode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant