MCPcopy
hub / github.com/Unitech/pm2 / restartExistingProcessId

Method restartExistingProcessId

lib/API.js:805–813  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

803 }
804
805 function restartExistingProcessId(cb) {
806 if (isNaN(script)) return cb(null);
807
808 that._operate('restartProcessId', script, opts, function(err, list) {
809 if (err) return cb(err);
810 Common.printOut(conf.PREFIX_MSG + 'Process successfully started');
811 return cb(true, list);
812 });
813 }
814
815 /**
816 * Restart a process with the same full path

Callers

nothing calls this directly

Calls 2

cbFunction · 0.85
_operateMethod · 0.80

Tested by

no test coverage detected