perf(memory): combine 3 node processes into one

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Meier LukasandCopilot committed 2026-04-30 15:06:47 +02:00
1 parent 8094458b10
commit f351929e5b
8 files changed
+20 -15

No files matched your search

+1 -9
View File
@@ -43,21 +43,13 @@ else
REDIS_PID=$!
fi
node apps/tasks/tasks.cjs &
TASKS_PID=$!
node apps/websocket/wssServer.cjs &
WSS_PID=$!
node apps/nextjs/server.js &
NEXTJS_PID=$!
# Function to handle SIGTERM and shut down services
terminate() {
echo "Received SIGTERM. Shutting down..."
kill -TERM $NGINX_PID $TASKS_PID $WSS_PID $NEXTJS_PID 2>/dev/null
kill -TERM $NGINX_PID $NEXTJS_PID 2>/dev/null
wait
# kill redis-server last because of logging of other services and only if $REDIS_PID is set
if [ -n "$REDIS_PID" ]; then