#!/bin/sh # # Emergency shutdown script for coldmud (should usually shutdown from in-db) # # -Brandon if [ X$COLD_DIR = X ]; then COLD_DIR=".." fi . ${COLD_DIR}/etc/server.config if [ -f ${COLD_DIR}/logs/coldmud.pid }; then PID=`cat ${COLD_DIR}/logs/coldmud.pid` else PID=`cat coldmud.pid` fi if [ X$PID = X ]; then echo "Unable to find PID file (coldmud.pid)" fi kill $PID