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