#!/bin/sh

tar -cjf logarchive/logs$(cat logarchive/currdate).tar.bz2 logs.0
echo "$(date "+%Y%m%d%H%M")" > logarchive/currdate
rm -rf logs.0/*
touch logs.0/nwserverLog1.txt

export LD_PRELOAD=./nwnx2.so

./nwserver \
	-port 5121\
	-publicserver 1 \
	-servername "0 ' reonline.freeforums.org" \
	-playerpassword "" \
	-dmpassword "reo82" \
	-oneparty 0 \
	-pvp 0 \
	-difficulty 2 \
	-elc 0 \
	-reloadwhenempty 0 \
	-module "Resident Evil Online v016" \
	-maxclients 24 \
	-servervault 1 \
	-maxlevel 40 \
	-gametype 0 \
	-autosaveinterval 0 \
	"$@"

