From af95bc791010285b73876a38159093032d868ce5 Mon Sep 17 00:00:00 2001 From: Josh Guyette Date: Mon, 12 Feb 2024 19:44:09 -0600 Subject: [PATCH] bug fix --- ngenv | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/ngenv b/ngenv index 77a3179..4b67fa3 100755 --- a/ngenv +++ b/ngenv @@ -187,40 +187,6 @@ switch (actionVerb) { process.exit(1); } -// Process command line arguments -if (actionVerb === "start") { -} else if (actionVerb === "stop") { - // Stop the background process - stopBackgroundProcess(); -} else if (actionVerb === "clear") { - // Clear the log files - clearLogs(); -} else if (actionVerb === "logs") { - // Display the log files - displayLogs(); - // tailLogs(); -} else if (actionVerb === "run" || actionVerb === "background") { - // Set up the background process - if (actionVerb === "background") { - // Start-up for the background process - process.on("SIGTERM", () => { - console.log("Stopping background process..."); - removeLockFile(); - process.exit(0); - }); - process.on("exit", (code) => { - console.log(`About to exit with code: ${code}`); - // Perform cleanup or final operations here - removeLockFile(); - }); - } - - // Start the main process - main(); -} else { - rootHelp(); -} - function rootHelp() { console.log(`Usage: ${scriptName} [run|start|stop|logs|clear] [options]`); console.log(`\nCommands:`);