Ahtenus / minecraft-init

Init script for minecraft and bukkit servers
404 stars 125 forks source link

Terminating screen #116

Open Jahmaican opened 11 years ago

Jahmaican commented 11 years ago

Okay, so I still have a big problem with the script. With default invocation i get the message "craftbukkit.jar is running", but no screen is created. I modified the invocation to

INVOCATION="java -Xmx$MAXMEM -Xms$INITMEM -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=$CPU_COUNT -jar $SERVICE nogui"

and then the server actually starts, loads completely and then after a few seconds it stops working (no messages in server.log) and the screen terminates. I have no clue what to do.

I use CB build 2577, although I doubt it's relevant.

jbondhus commented 11 years ago

For now I would try restarting your server, and remove the minecraft.pid file that is created. Then try starting it.

Jahmaican commented 11 years ago

Tried that already, but it doesn't help.

jbondhus commented 11 years ago

Did you try removing the PID file?

Jahmaican commented 11 years ago

As said above, I did, .pid removed and still, the server starts, but in less than a minute after

Done (23.049s)! For help, type "help" or "?"

it stops.

jbondhus commented 11 years ago

Does your log show why it stopped? Sounds like perhaps a plugin issue or memory leak. I know the screen terminates if the minecraft server jar happens to crash. When it does this, you can try running this script with the kill option, that will force kill the java processes and the screen processes.

Jahmaican commented 11 years ago

Unfortunately there's nothing in .log that I could work with. Besides that, I still wonder why the server won't even start with default invocation.