���Root Mod By V1rus_Alfa
User / IP
:
216.73.217.78
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
.trash
/
node_modules.1
/
nitropack
/
dist
/
runtime
/
entries
/
Viewing: node-cluster.mjs
import os from "node:os"; import cluster from "node:cluster"; import { getGracefulShutdownConfig } from "../shutdown.mjs"; import { trapUnhandledNodeErrors } from "../utils.mjs"; function runMaster() { const numberOfWorkers = Number.parseInt(process.env.NITRO_CLUSTER_WORKERS) || (os.cpus().length > 0 ? os.cpus().length : 1); for (let i = 0; i < numberOfWorkers; i++) { cluster.fork(); } let isShuttingDown = false; cluster.on("exit", () => { if (!isShuttingDown) { cluster.fork(); } }); const shutdownConfig = getGracefulShutdownConfig(); if (!shutdownConfig.disabled) { async function onShutdown() { if (isShuttingDown) { return; } isShuttingDown = true; await new Promise((resolve) => { const timeout = setTimeout(() => { console.warn( "[nitro] [cluster] Timeout reached for graceful shutdown. Forcing exit." ); resolve(); }, shutdownConfig.timeout); cluster.on("exit", () => { if (Object.values(cluster.workers).every((w) => w.isDead())) { clearTimeout(timeout); resolve(); } else { } }); }); if (shutdownConfig.forceExit) { process.exit(0); } } for (const signal of shutdownConfig.signals) { process.once(signal, onShutdown); } } } function runWorker() { import("./node-server.mjs").catch((error) => { console.error(error); process.exit(1); }); } trapUnhandledNodeErrors(); if (cluster.isPrimary) { runMaster(); } else { runWorker(); }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa