Skip to content

Commit

Permalink
Merge pull request #16 from androa/docker-exit
Browse files Browse the repository at this point in the history
Exit on SIGTERM
  • Loading branch information
farolfo committed Oct 27, 2016
2 parents 9284255 + 4f201df commit ac63ed8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ramlServer.js
Expand Up @@ -60,3 +60,7 @@ function generateServer(db) {
ramlMocker.generate(options, function (requestsToMock) {
generateServer(_.reduce(_.map(requestsToMock, reqToDBEntry), _.extend, {}));
});

process.on('SIGTERM', function() {
process.exit();
});

0 comments on commit ac63ed8

Please sign in to comment.