Jump to content

soft reset on linux how?


oskarcc

Recommended Posts

Add -Dsoftreset to the projectzomboid-dedi-server.sh file like so:

#!/bin/bash## projectzomboid.sh################################################################################  SCRIPT="`basename $0`"GAMEDIR="${HOME}/.project_zomboid_2.9.9.17"LOGFILE="${GAMEDIR}/${SCRIPT}.log"INSTDIR="`dirname $0`"/projectzomboid ; cd "${INSTDIR}" ; INSTDIR="`pwd`" [[ ! -d "${GAMEDIR}" ]] && mkdir -m 0755 "${GAMEDIR}" JARPATH=".:lwjgl.jar:lwjgl_util.jar:jinput.jar:sqlitejdbc-v056.jar:trove-3.0.3.jar" # XMODIFIERS is cleared here to prevent SCIM screwing up keyboard inputXMODIFIERS= java \    -Djava.library.path="${INSTDIR}" \    -Dorg.lwjgl.util.NoChecks=true \    -Dorg.lwjgl.librarypath="${INSTDIR}" \    -Dsoftreset \    -Xms4096m \    -Xmx4096m \    -XX:-UseSplitVerifier \    -cp "${JARPATH}" \zombie.network.GameServer \    "$@" exit 0 ## EOF################################################################################

DON'T COPY AND PASTE THAT TEXT IT'S JUST AN EXAMPLE

 

As far as I'm aware, this should work. In theory it should work, but I never personally got it working. Someone might come along and tell you a way to do it better, so who knows. Make sure to remove -Dsoftreset after you have run the file once otherwise you would be resetting the server constantly.

Link to comment
Share on other sites

  • 4 weeks later...

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...