#!/bin/bash

#   ShipWars Server: Restart Script
#
#	This is a sample restart script.  It assumes the database files are
#	in the current directory (the directory this file is in).
#	You should modify this script file to comform to the way you have
#	the server set up.
#

# Backup, move the input (in) universe file to be the backup (old)
# universe file.
#
mv db/generic_in.unv db/generic_old.unv

# Move (if exists) the new (out) universe file to be the input
# universe file.
#
mv db/generic_out.unv db/generic_in.unv


# Run the server, the first argument must be the path to the
# server's configuration file.
#
./bin/swserv etc/default.conf
