website/stop_processes.sh

10 lines
193 B
Bash
Raw Normal View History

2024-02-08 14:07:13 +00:00
#!/bin/bash
# Read the PIDs from the file and terminate the processes
while read pid; do
kill $pid
done < /tmp/my_processes.pid
# Optionally, remove the PID file
rm /tmp/my_processes.pid