Skip to content

Send SIGUSR2 signal on restart like nodemon? #21

@ericf

Description

@ericf

Would it be possible to add a some signal, e.g. SIGUSR2 before a restart to allow a micro server to perform some cleanup? nodemon does this: https://github.com/remy/nodemon/#controlling-shutdown-of-your-script

My use-case is a setInterval() that I want to call clearInterval() on each time micro-dev restarts the server. Right now I end up with one interval long running for every single start/restart of the server.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions