coldstop
ColdX-0.1-5/bin/coldstop · 383 B
From the archive ColdX-0.1-5.tar.gz
Download the archive « Back to the archive contents
#!/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