Jump to content

Jedi Academy turned 20 this year! We celebrated in a ton of different ways: mod contest, server event, podcast, etc. Thank you to all who have been a part of this game for the last two decades. Check out the anniversary content!

Read more

Welcome to JKHub

This community is dedicated to the games Star Wars: Jedi Outcast (2002) and Jedi Academy (2003). We host over 3,000 mods created by passionate fans around the world, and thousands of threads of people showcasing their works in progress and asking for assistance. From mods to art to troubleshooting help, we probably have it. If we don't, request or contribute!

Get started

This game turned 20 years old this year, and it is still one of the greatest Star Wars games of all time. If you're new or returning from a long hiatus, here are the basics of getting started with Star Wars Jedi Knight Jedi Academy in 2023.

Read more

Basic auto-restart scripts for a Linux JKA Dedicated Server


Sgt Pepper
Basic auto-restart scripts for Linux JKA Dedicated.
 
These go into a Linux server's GameData folder, and it also logs all server activity into screen.log in the same folder.
 
The scripts depend on packages 'screen' and 'watch', use "apt install screen watch" or "yum install screen watch" if needed.
 
jka_autorestart.sh
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
jka_start.sh - uncomment the appropriate command line depending on mod and whether using openjk
#./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.


User Feedback

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...