1 2 3 4 5 6 7 8
#! /bin/sh if [ -f emu.pid ]; then kill $(cat emu.pid) rm emu.pid echo "RIP" else echo "nothing to RIP" fi