[cod] Setting up COD as a service?
Luke
luke at techfreak.org
Thu Dec 23 13:54:08 EST 2004
Sure. I use the following script to start/ stop/ restart all game
server.... but you could adjust it for individual game servers as
well.
the script just runs a start script. Its also set to run on boot by
placing it in rc3.d
-------------- begin code
#!/bin/bash
#
# Init file for gameservers
#
# chkconfig: 345 55 25
# description: GSG Gameservers
#
# source function library
. /etc/rc.d/init.d/functions
#ipt="/sbin/iptables"
#inspath="/root/gsg"
prog="gsg"
case "$1" in
start)
echo -n "Starting gameservers:"
$inspath/vnet/vnetgen >> /dev/null 2>&1
/root/gsg/start_all_servers
echo_success
echo
;;
stop)
echo -n "Stopping gameservers:"
echo_success
echo
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
esac
exit 0
------------------------end code
Luke
Joshua Curtiss said:
> Has anyone set up COD/COD:UO as a service? If so, would you mind
> sharing your rc file? I actually wrote an rc file to do this, but it
> isn't working right, and rather than fixing something broke, I'd
> rather just see how to do it right.
>
> Thanks,
> Josh
>
--
www.frankenworks.com - headquarters for linux game admins.
More information about the Cod
mailing list