MCPcopy Index your code
hub / github.com/Unitech/pm2 / launchMonitor

Function launchMonitor

lib/API/Extra.js:699–712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

697 Monit.init();
698
699 function launchMonitor() {
700 that.Client.executeRemote('getMonitorData', {}, function(err, list) {
701 if (err) {
702 console.error('Error retrieving process list: ' + err);
703 that.exitCli(conf.ERROR_EXIT);
704 }
705
706 Monit.refresh(list);
707
708 setTimeout(function() {
709 launchMonitor();
710 }, 400);
711 });
712 }
713
714 launchMonitor();
715 };

Callers 1

Extra.jsFile · 0.85

Calls 1

exitCliMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…