omnitool_on_hf / run.sh
manu-sapiens's picture
back to basics
8cac065
raw
history blame
361 Bytes
#!/bin/bash
# Start the Node.js server in the background
echo "Starting Node.js server..."
node myNodeServer.js --port 4444 --host 0.0.0.0 & echo $! > node_server.pid
# The script waits here for the myNodeServer process to terminate
echo "Waiting for myNodeServer to terminate..."
wait $(cat node_server.pid)
echo "killing .pid files..."
rm node_server.pid