Jump to content

Home

Linux script for people to use


Acidshock

Recommended Posts

Here is a shell script that uses a little less of the system resources then screen however there is a downfall you wont be able to bring it up locally on the console. This does work really well since you can use webmin and make a button for other people to bring up or drop the server.

 

// pkill -f (insert command name or partial name there, see example below. You can use the cfg file, port, etc if you are hosting multiple servers)

 

 

pkill -f adminmod

echo KILLING PROCESS...

sleep 5

cd /usr/local/games/af/jk2

nohup ./jk2ded +exec server.cfg +set fs_game adminmod +set net_port 28074 > out.txt 2>err.txt &

echo Starting Process:

sleep 2

pgrep -fl adminmod

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...