[bf1942] does anyone have an working startscript?

Lee Thompson bm55b at yahoo.com
Sun Jan 26 21:41:03 EST 2003


type-o

su --login --command="cd $path; ./$game" bf1942
>&/dev/null &


--- Lee Thompson <bm55b at yahoo.com> wrote:
> d'oh - the usual - need to change dir
> 
> su --login --command="cd $path; ./$game bf1942
> >&/dev/null &
> 
> 
> --- Lee Thompson <bm55b at yahoo.com> wrote:
> > I like to run this as a non root user so I create
> a
> > bf1942 account and use this in Joe's script
> > 
> >   su --login --command=$path/$game bf1942
> > >&/dev/null
> > &
> > 
> > I'm going to test this in lieu of the superbowl
> > 
> > --- Joe <crazyace at ourreality.net> wrote:
> > > Here's one that you can use on RedHat with
> > chkconfig
> > > to run it as a
> > > startup service or run manually with
> > > start|stop|status|restart switches.
> > > 
> > > Enjoy!
> > > 
> > > ### Start BF1942 Control Script
> > > 
> > > #!/bin/sh
> > > 
> > > #####################################
> > > ## Define your executable and Path ##
> > > game=bf1942_lnxded
> > > path=/usr/local/games/bf1942
> > > #####################################
> > > 
> > > # chkconfig: 345 99 8
> > > # description: |OurReality.net BF1942|
> > > # Website: www.OurReality.net
> > > # Home of the SOFLA Gibfest LAN Party
> > > # Source function library.
> > > . /etc/rc.d/init.d/functions
> > > 
> > > [ -f $path/$game ] || exit 0
> > > 
> > > case "$1" in
> > >   start)
> > >         echo -n "Starting $game in $path: "
> > >         cd $path
> > >         ./$game >&/dev/null &
> > >         sleep 2
> > >         echo
> > >         ;;
> > >   stop)
> > >         echo -n "Stopping $game in $path: "
> > >         killproc $game
> > >         echo
> > >         ;;
> > >   restart)
> > >         $0 stop
> > >         $0 start
> > >         ;;
> > >   status)
> > >         echo -n "Status for $game in $path: "
> > >         status $game
> > >         ;;
> > >   *)
> > >         echo $"Usage: $0
> > > {start|stop|status|restart}"
> > >         exit 1
> > > esac
> > > 
> > > exit 0
> > > 
> > > ### End BF1942 Control Script
> > > 
> > > -----Original Message-----
> > > From: DLinkOZ [mailto:dlinkoz at oesm.org]
> > > Sent: Saturday, January 18, 2003 7:10 PM
> > > To: bf1942 at icculus.org
> > > Subject: Re: [bf1942] does anyone have an
> working
> > > startscript?
> > > 
> > > 
> > > Here's what I use (uses su to server account so
> > root
> > > can load it at
> > > boot, and runs a loop for crashes):
> > > 
> > > 
> > > #!/bin/bash
> > > 
> > > while true
> > > do
> > > 
> > > cd /servers/bf-30plus
> > > su xanax -c './bf1942_lnxded'
> > > 
> > > sleep 5
> > > done
> > > 
> > > 
> > > No rocket science here, just a simple script.
> > > 
> > > 
> > > ----- Original Message -----
> > > From: "Alexander Staniura" <SantaHomer at web.de>
> > > To: <bf1942 at icculus.org>
> > > Sent: Saturday, January 18, 2003 5:47 PM
> > > Subject: [bf1942] does anyone have an working
> > > startscript?
> > > 
> > > 
> > > did you? give it pls
> > > 
> > > 
> > > 
> > >
> >
>
__________________________________________________________________
> > > A. Staniura
> > > ICQ#: 122042620
> > > 
> > > 
> > > Current ICQ status:
> > > 
> > > 
> > > 
> > > * Fax#:  0711-4579647
> > > 
> > > !!!NOTICE!!!!
> > > 
> > > Diese E-Mail enthält vertrauliche und/oder
> > rechtlich
> > > geschützte
> > > Informationen. Wenn Sie nicht der richtige
> > Adressat
> > > sind oder diese
> > > E-Mail irrtümlich erhalten haben, informieren
> Sie
> > > bitte sofort den
> > > Absender und vernichten Sie diese Mail. Das
> > > unerlaubte Kopieren sowie
> > > die unbefugte Weitergabe dieser Mail ist nicht
> > > gestattet.
> > > 
> > > This e-mail may contain confidential and/or
> > > privileged information. If
> > > You are not the intended recipient (or have
> > received
> > > this e-mail in
> > > error) please notify the sender immediately and
> > > destroy this e-mail. Any
> > > unauthorised copying, disclosure or distribution
> > of
> > > the material in this
> > > e-mail is strictly forbidden.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> >
>
__________________________________________________________________
> > > 
> > 
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > http://mailplus.yahoo.com
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



More information about the Bf1942 mailing list