Advertisement
Guest User

Untitled

a guest
Feb 5th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. var shutdown_master = function() {
  2. logger.log( "info", "shutting down, killing workers" );
  3. Promise.map(Object.keys(cluster.workers), stopWorker).then(function() {
  4. logger.log( "info", "exiting" );
  5. process.exit(0);
  6. }, function() {
  7. console.log("I failed badly");
  8. });
  9. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement