From 902e5a5a1225d2072ab6337aa067caf9c6a7cca4 Mon Sep 17 00:00:00 2001 From: Unitech Date: Mon, 9 Jul 2018 15:15:39 +0200 Subject: [PATCH] fix: restore no_interaction for pm2-dev --- lib/Client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Client.js b/lib/Client.js index 918bd1ec6..82e55c681 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -271,6 +271,9 @@ Client.prototype.launchDaemon = function(opts, cb) { if (opts && opts.interactor == false) return cb(null, child); + if (process.env.PM2_NO_INTERACTION == 'true') + return cb(null, child); + /** * Here the Keymetrics agent is launched automaticcaly if * it has been already configured before (via pm2 link)