chore: gitignore hardening, VERSION, CI workflow, tests, docs
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+13
-1
@@ -47,5 +47,17 @@ FRONTEND_PID=$(_start "NEXUS FRONTEND SERVICE" "$FRONTEND_LOG" "$FRONTEND_DIR" \
|
||||
sleep 5
|
||||
_check "NEXUS FRONTEND SERVICE" "$FRONTEND_PID" "$FRONTEND_LOG"
|
||||
|
||||
trap "kill $MEMORY_PID $BACKEND_PID $FRONTEND_PID 2>/dev/null; echo ''; echo 'NEXUS STOPPED'; exit" SIGINT SIGTERM
|
||||
_shutdown() {
|
||||
echo ''
|
||||
echo 'Stopping NexusOS...'
|
||||
# First TERM the processes we directly spawned.
|
||||
kill "$MEMORY_PID" "$BACKEND_PID" "$FRONTEND_PID" 2>/dev/null
|
||||
# uvicorn --reload leaves a worker child holding the port and `npm run dev`
|
||||
# reparents vite, so the direct kills above orphan survivors. Delegate to the
|
||||
# management CLI's port-based teardown, which reliably clears all three ports.
|
||||
"$PROJECT_ROOT/management/nexus-cli.sh" stop >/dev/null 2>&1
|
||||
echo 'NEXUS STOPPED'
|
||||
exit
|
||||
}
|
||||
trap _shutdown SIGINT SIGTERM SIGHUP
|
||||
wait
|
||||
|
||||
Reference in New Issue
Block a user