[bf1942] Off Topic --

Ferron ferron at ferron.de
Mon Dec 23 22:17:09 EST 2002


Hi Zkast,

   here the beginning of the debian start-stop script assuming user
   gamesrv and group gamesrv .

   path is also subject to change...

   -------------

#! /bin/sh
#
# skeleton      example file to build /etc/init.d/ scripts.
#               This file should be used to construct scripts for /etc/init.d.
#
#               Written by Miquel van Smoorenburg <miquels at cistron.nl>.
#               Modified for Debian GNU/Linux
#               by Ian Murdock <imurdock at gnu.ai.mit.edu>.
#
# Version:      @(#)skeleton  1.9  26-Feb-2001  miquels at cistron.nl
#

PATH=/opt/ut2003/server/server1/:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/opt/ut2003/server/server1/ucc
ARGS="server BR-Anubis?XGame.xBombingRun?AdminName=Ferron?AdminPassword=ddd2003 -nohomedir -ini=FPS.ini" 
NAME=utserverd
DESC="UT2003 Starter Daemon"

test -x $DAEMON || exit 0

set -e

case "$1" in
  start)
        echo -n "Starting $DESC: "
        start-stop-daemon --start --chuid gamesrv --quiet --pidfile /var/run/$NAME.pid \
                --background --exec $DAEMON -- $ARGS 
        echo "$NAME."
        ;;

   
   -------------

   if you need an non start stop script i will make one but i hope u
   use debian : )

   cu,
   
Ferron                            
----------------------------------------------
mailto:ferron at ferron.de




More information about the Bf1942 mailing list