hAx

Xgear

Community Contributors
Messages
249
Points
0
Age
40
File Name: hAx

File Submitter: Xgear

File Submitted: 25 May 2013

File Category: Scripts

This is an old RO launcher I have. Been using it ever since it came to my hands.

Restarts the server as soon as it crashes.

No idea who wrote it other than whats in the script's usage: Zak Farrington alias fritz <[email protected]>

Code:
Usage: ./hAx [OPTIONS]... [MAPSERVER-BINARY]... [OUTPUTFILE]...Examples:   ./hAx --hup map-server map-server.out        # Inerpret hang up signals && output to map-server.out   ./hAx --nohup map-server.exe /dev/null       # Ignore hangup signals && output to /dev/nullThe Flags:   --hup        Passes map-server directly to the command line, thusly it interprets hang up signals   --nohup      Passes map-server thru nohup to ignore hang up signals
To use it you can create a file called "run", chmod +x the file and add this on it

nohup ./hAx --nohup login-server ~/server/log/login/slog &

nohup ./hAx --nohup char-server ~/server/log/char/schar &

nohup ./hAx --nohup map-server ~/server/log/map/smap &

After that, simply type ./run and voila.

All the console output will be logged to ~/server/log/<server>/s<server>_<start_time>

Hope it helps
default_smile.png


Cheers.

Click here to download this file

 
Last edited by a moderator:
heads up this does not do what it says beware my vps got flagged because of this script

 
I use this script on all my servers (about 5 considering test servers and what not) and I've never had any issues with it O.o

You might've been flagged because the script constantly checks for the process running (about every 0.2ms), in order to restart it if it has crashed. 

I haven't tested this on a VPS, only on personal computers or dedicated servers, so no idea if your VPS has some sort of warning for such things.

But, it does what it says it does, whether it works for you under your environment is a different issue
default_tongue.png


Edit: Or chances are as this is not a script, but a compiled software, it ends up being in a software launching a proccess, which under  your VPS configuration might have been flagged. 

 
Last edited by a moderator:
Advisable to use output to /dev/null because it simply eats up your hard disk space.

 
Back
Top