Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

[QUESTION] Why SIGTERM is passed only one time? #52

@olegsu

Description

@olegsu

Hey,
I am trying to handle signals in my application and they may come multiple times.
I found here that the signal is propagated only the first time (the second signal will kill npm process and won't pass it to the child). In some use cases, we want to actually receive the second signal as well.
I also found this post talking to something very similar. In the end, they replaced the npm run start command of with node index.js. Is this what npm suggest as best practice in that case?

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