rc.shutdown.wiley
wiley_dist/src/etc/rc.shutdown.wiley · 363 B
From the archive WileyMUD3_091205.tar.bz2
Download the archive « Back to the archive contents
# Butcher WileyMUD
if [ -f /home/wiley/etc/wiley.pid ]; then
WILEYPID=`ps -axw | grep wileymud | grep -v grep | awk '{print $1}'`
if [ -n "$WILEYPID" ]; then
kill -USR1 $WILEYPID
sleep 5
fi
unset WILEYPID
kill -TERM `cat /home/wiley/etc/wiley.pid`
rm -f /home/wiley/etc/wiley.pid
fi