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

Function readDumpFile

lib/API/Startup.js:544–554  ·  view source on GitHub ↗
(dumpFilePath)

Source from the content-addressed store, hash-verified

542 var processes;
543
544 function readDumpFile(dumpFilePath) {
545 Common.printOut(cst.PREFIX_MSG + 'Restoring processes located in %s', dumpFilePath);
546 try {
547 var apps = fs.readFileSync(dumpFilePath);
548 } catch (e) {
549 Common.printError(cst.PREFIX_MSG_ERR + 'Failed to read dump file in %s', dumpFilePath);
550 throw e;
551 }
552
553 return apps;
554 }
555
556 function parseDumpFile(dumpFilePath, apps) {
557 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…