Skip to content

Introduce a proper shutdown procedure #35

Description

@heavyrubberslave

See #34

server.close() of express should be called in a callback listening on SIGTERM or maybe other outside signals. This will emit the close event and devices can be tried to be reset. Only thing is that the shutdown function registered for the signals is not guaranteed to finish properly before the process is killed. But maybe more a theoretical problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions