#!/bin/bash if [ -f rtbwn.pid ]; then kill $(cat rtbwn.pid) rm rtbwn.pid else echo "Server is not active, or you are not in the server directory" fi