nimmis / docker-spigot

A docker container with spigot, builds spigot.jar on first start
177 stars 81 forks source link

"/restart" command shuts down the server #28

Closed minexew closed 6 years ago

minexew commented 6 years ago

Server log:

[19:21:09 INFO]: PLAYER_NAME issued server command: /restart
[19:21:09 INFO]: Startup script './start.sh' does not exist! Stopping server.
[19:21:09 INFO]: Stopping server
[19:21:10 INFO]: Saving players
[19:21:11 INFO]: Saving worlds

Afterwards, the server is stopped instead of restarting. The container keeps running.

nimmis commented 6 years ago

I missed that function, I'll fix it today, a quick fix for you running container is to issue

docker exec minecraft /bin/sh -c 'ln -s /usr/local/bin/mc_start /minecraft/start.sh'

where minecraft is the name of the spigot container

nimmis commented 6 years ago

Now it's a new version with the start.sh issue fixed, use

docker pull nimmis/spigot

to get the fixed version

minexew commented 6 years ago

Thank you for your work.