Skip to content

Does not process SIGINT properly #156

@jsonxr

Description

@jsonxr

When running via docker command line, it does not shut down when I press "CTRL-C".

docker run --name=mail --rm -p "1080:80" -p "25:25" djfarrelly/maildev

I have to type:

docker rm -f mail

To force it to shut down.

Adding

process.on('SIGINT', process.exit); // Handle ctrl-c when running via docker run
process.on('SIGTERM', process.exit); // Handle when we docker rm the container

To bin/maildev would handle this

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions