run-teeny.sh

teeny/run-teeny.sh · 468 B

From the archive TeenyMUD-1.3.tar.gz

Download the archive   « Back to the archive contents

#!/bin/sh

while test ! -f teeny.on; do
	echo starting teeny at `date` >> logs/teeny
	touch teeny.on
	cp old.bits chunky.bits
	cp old.index chunky.index
	mv logfile logfile~
	mv log2file log2file~
#
# Start teenymud with a 120k cache (large).
	nohup teenymud -C 120 -l 2>log2file >logfile
	echo stopped at `date` >> logs/teeny
# Find the guilty party
	ps aux >> logs/teeny
	sleep 240
	rm teeny.on
done
echo "You can't run teeny twice in the same directory, butthead!"

Site Stats

Snippets: 1791
Codebases: 571