Skip to content

How to catch process exit signals #145

@cboyle123

Description

@cboyle123

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions