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

Function parseDumpFile

lib/API/Startup.js:556–570  ·  view source on GitHub ↗
(dumpFilePath, apps)

Source from the content-addressed store, hash-verified

554 }
555
556 function parseDumpFile(dumpFilePath, apps) {
557 try {
558 var processes = Common.parseConfig(apps, 'none');
559 } catch (e) {
560 Common.printError(cst.PREFIX_MSG_ERR + 'Failed to parse dump file in %s', dumpFilePath);
561 try {
562 fs.unlinkSync(dumpFilePath);
563 } catch (e) {
564 console.error(e.stack || e);
565 }
566 throw e;
567 }
568
569 return processes;
570 }
571
572 // Read dump file, fall back to backup, delete if broken
573 try {

Callers 1

Startup.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…