stop.sh (129B)
1 2 3 4 5 6 7 8
#!/bin/sh [ ! -f ./.pid ] && { echo "No PID file found."; exit 1; } PID="$(cat ./.pid)" kill "$PID" echo "Bot killed ($PID)."