separate scripts for workflow

This commit is contained in:
Adam Wilson
2025-05-19 19:31:55 -06:00
parent a67a28e1cb
commit 09fc8b5087
7 changed files with 312 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
echo "Cleaning up processes..."
# Kill the monitoring process if it exists
if [ -f "$MONITOR_PID_FILE" ]; then
MONITOR_PID=$(cat $MONITOR_PID_FILE)
echo "Stopping monitoring process with PID: $MONITOR_PID"
kill $MONITOR_PID 2>/dev/null || echo "Monitor process already stopped"
rm $MONITOR_PID_FILE
fi
# Kill the API process if it exists
if [ -f "$API_PID_FILE" ]; then
API_PID=$(cat $API_PID_FILE)
echo "Stopping API process with PID: $API_PID"
kill $API_PID 2>/dev/null || echo "API process already stopped"
rm $API_PID_FILE
fi
echo "Cleanup complete"