[mohaa] console reattatch

Dekard Dekard at gameadmins.com
Sat Jul 20 15:19:14 EDT 2002


Make sure you've chmod'd the linuxded

-----Original Message-----
From: Marek Suwalski [mailto:mars at mars.waw.pl] 
Sent: Saturday, July 20, 2002 9:37 AM
To: mohaa at icculus.org
Subject: Re: [mohaa] console reattatch


but we receive error message

bash: ./start-mohaa: bad interpreter: Permission denied


----- Original Message -----
From: "Ryan C. Gordon" <icculus at clutteredmind.org>
To: <mohaa at icculus.org>
Sent: Saturday, July 20, 2002 1:15 PM
Subject: RE: [mohaa] console reattatch


>
> > Thn y'all - very informative learnt a few things. now i need to 
> > learn how to write a restarting script...  anyone got a faq on that 
> > :) Damon
>
> Put this into start_server.sh:
>
> #!/bin/sh
>
> while true
>   do
>     echo "MOHAA server coming up..."
>     /where/i/installed/mohaa/mohaa_lnxded {...set command options
here...}
>     echo "MOHAA server has gone DOWN."
>     sleep 5
>   done
>
>
> (Edit that to fit your needs...)
>
> Then run chmod a+x start_server.sh so the file is executable.
>
>
> Run the script, which will run the game. If the game crashes, or you 
> shutdown the game server, the script will sit there for five seconds 
> and then restart it.
>
> The five seconds is to give you an idea of what's happening if the 
> thing is crashing contiunually, and so you can CTRL-C out of the 
> script if you legitimately took the server down with a "quit" at the 
> console.
>
> --ryan.
>
>
>







More information about the Mohaa mailing list