(20241122) Project created.

This commit is contained in:
2024-11-22 12:49:21 +05:30
commit b3703e90db
14 changed files with 299 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
# Kill all the scripts:
echo "Killing the script."
pkill -9 -f "$(pwd)/api/main.py"
# Get the name of the current directory,
# and kill the monitors of the above scripts:
echo "Killing the monitors."
PARENT_WD=$(pwd)
CURRENT_DIR_NAME=$(basename "$PARENT_WD")
pgrep -f "$CURRENT_DIR_NAME.*python" | xargs kill -9
# All done:
echo "Done!"
exit 0