This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2026-08-20 00:45:43 +02:00

10 lines
216 B
Bash

#!/bin/bash
PID=$(pgrep -f "main.py" | head -1)
if [ -n "$PID" ]; then
kill -TERM "$PID"
sleep 2
kill -0 "$PID" 2>/dev/null && echo "STILL ALIVE" || echo "KILLED $PID"
else
echo "NO PROCESS FOUND"
fi