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

Method getProcessIdByName

lib/API.js:1640–1651  ·  view source on GitHub ↗
(name, cb)

Source from the content-addressed store, hash-verified

1638 }
1639
1640 getProcessIdByName (name, cb) {
1641 var that = this;
1642
1643 this.Client.getProcessIdByName(name, function(err, id) {
1644 if (err) {
1645 Common.printError(err);
1646 return cb ? cb(Common.retErr(err)) : that.exitCli(conf.ERROR_EXIT);
1647 }
1648 console.log(id);
1649 return cb ? cb(null, id) : that.exitCli(conf.SUCCESS_EXIT);
1650 });
1651 }
1652
1653 /**
1654 * Description

Callers 9

resetMethod · 0.80
actionFromJsonMethod · 0.80
_operateMethod · 0.80
CLI.jsFile · 0.80
programmatic.jsFile · 0.80
API.jsFile · 0.80

Calls 2

cbFunction · 0.85
exitCliMethod · 0.80

Tested by

no test coverage detected