#! /bin/bash
# 
# script to be put in /etc/rc.d to start Armagetron Advanced server process
# tested on Gentoo 2004.4
# Author: Manuel Moos <manuel@moosnet.de>
#

# program installation directory
PROGDIR=/usr/games/armagetronad

# load configuration
. $PROGDIR/rc.d/config

# files where PIDs are stored
STARTERPIDFILE=$PIDDIR/armagetronad-starter.pid
MAINPIDFILE=$PIDDIR/armagetronad.pid

# program to run
BINARY=serverstarter-armagetronad
BINFILE=$BINDIR/$BINARY
TYPE=server

# log file
LOGFILE=$LOGDIR/armagetronad.log

# delegate to common start/stop/status code
. $RCDDIR/startstop
