crownix-share-app.min.js 853 B

1
  1. var shareApp=(function(){var a=require("debug");var i=require("cluster");var h=require("fs");i.schedulingPolicy=i.SCHED_NONE;if(i.isMaster){var c=a("master");c("[begin] start master ${"+process.pid+"}");var b=i.fork();i.on("online",function(j){c("[fork] worker ${"+j.process.pid+"} created.")});i.on("exit",function(k,j){c("worker ${"+k.process.pid+"} died.");c("[code] ${"+j+"}");c("restart...");k=i.fork()})}if(i.isWorker){var d=a("worker");var g=h.readdirSync("./").indexOf("crownix-share-server.js")>=0?require("./crownix-share-server.js"):require("./crownix-share-server.min.js");if(h.readdirSync("./").indexOf("crownix-share-report.js")>=0){var e=require("./crownix-share-report.js"),f=require("./crownix-share-reportManager.js");f.createReport=e.createReport;g.createReportManager=f.createReportManager}g.start();d("[shareServer] started.")}})();