Skip to content

Commit 902e5a5

Browse files
committed
fix: restore no_interaction for pm2-dev
1 parent 8de987a commit 902e5a5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎lib/Client.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ Client.prototype.launchDaemon = function(opts, cb) {
271271
if (opts && opts.interactor == false)
272272
return cb(null, child);
273273

274+
if (process.env.PM2_NO_INTERACTION == 'true')
275+
return cb(null, child);
276+
274277
/**
275278
* Here the Keymetrics agent is launched automaticcaly if
276279
* it has been already configured before (via pm2 link)

0 commit comments

Comments
 (0)