mynode/scripts/stop_http_server.sh

10 lines
213 B
Bash
Raw Normal View History

#!/bin/bash
if [ -f ./out/file_server_pid ]; then
PID=$(cat ./out/file_server_pid)
if ps -p $PID > /dev/null; then
echo "Stopping HTTP Server ($PID)..."
kill $PID
sleep 1
fi
fi