Unitech/PM2 — pull request #781 by adrianocola (2014-10-25 20:29:44+00:00)
Title: Added variable to define how much time pm2 will wait for listening event in cluster mode

Added environment variable PM2_GRACEFUL_LISTEN_TIMEOUT to define how much time pm2 will wait for the child process to send a listening event in cluster mode before sending the shutdown message to the old process.

The timeout was hardcoded with 4000ms. Just added the environment variable and changed the documentation