screen -dmS jka_restarter watch -n 5 /absolute/path/to/jka_restarter.sh
jka_restarter.sh
if ! screen -list | grep -q "jka_server1"; then screen -dmLS jka_server1 ./jka_start.sh fi
#./linuxjampded +set net_port 29070 +set dedicated 2 +set fs_game base +exec server.cfg #./linuxjampded +set net_port 29070 +set dedicated 2 +set fs_game japlus +exec server.cfg #./openjkded.i386 +set net_port 29070 +set dedicated 2 +set fs_game base +exec server.cfg #./openjkded.i386 +set net_port 29070 +set dedicated 2 +set fs_game japlus +exec server.cfg
Hope someone finds that helpful. Have a nice day.
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now