diff --git a/startup.sh b/startup.sh index a5a0fecacf..ac57f1c6c5 100755 --- a/startup.sh +++ b/startup.sh @@ -1,4 +1,25 @@ #!/bin/bash export DJANGO_SETTINGS_MODULE="settings" -#python2.5 -m cProfile -o profiler.log -s time server.py -python2.5 server.py + +## Uncomment whichever python binary you'd like to use to run the game. +## Evennia is developed on 2.5 but should be compatible with 2.4. +# PYTHON_BIN="python" +# PYTHON_BIN="python2.4" +PYTHON_BIN="python2.5" + +## The name of your logfile. +LOGNAME="evennia.log" +## Where to put the last log file from the game's last running +## on next startup. +LOGNAME_OLD="evennia.log.old" +mv $LOGNAME $LOGNAME_OLD + +## There are several different ways you can run the server, read the +## description for each and uncomment the desired mode. + +## Generate profile data for use with cProfile. +# $PYTHON_BIN -m cProfile -o profiler.log -s time server.py +## Interactive mode. Good for development and debugging. +# $PYTHON_BIN server.py +## Stand-alone mode. Good for running games. +nohup $PYTHON_BIN server.py > $LOGNAME &