#!/bin/sh
#
# Start up empire servers.  This may be run from /etc/rc.local
# or by hand when you wish to start the empire game running.
#
cd `dirname $0`
pid=`ps -ax | grep emp_tm | grep -v grep | awk '{print $1}'`
if [ "$pid" != "" ]; then
	echo Empire server emp_tm is already running
else
	echo Starting empire server emp_tm
	./emp_tm
fi
pid=`ps -ax | grep emp_login | grep -v grep | awk '{print $1}'`
if [ "$pid" != "" ]; then
	echo Empire server emp_login is already running
else
	echo Starting empire server emp_login
	./emp_login
fi
