Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server does not kill the Minecraft server when i shutdown the system #269

Open
Tenyun opened this issue Sep 14, 2014 · 2 comments
Open

Server does not kill the Minecraft server when i shutdown the system #269

Tenyun opened this issue Sep 14, 2014 · 2 comments

Comments

@Tenyun
Copy link

Tenyun commented Sep 14, 2014

Hy guys,

i have a little problem with the init script on my Debian 7.6.

When i start the server the init script start the Minecraft server and all is fine.
But wenn i shutdown the server with "sudo shutdown -h now" or "sudo poweroff" the server does not stop the Minecraft server with "msm stop".
When i manually use "sudo msm stop" it works fine. (BTW the command (msm stop) dose not save the World from RamDisk... but i add a line in the script to do this)

Is there a problem with the script or with the system... or is the problem between my ears?

@milesvp
Copy link

milesvp commented Nov 15, 2015

I just encountered this last night on centos. I was able to fix it by adding some lines to /etc/init.d/msm that create and remove a lock file in /var/lock/subsys. I'm working on a patch to submit for this.

https://www.google.com/search?q=centos+shutdown+init.d+%2Fvar%2Flock%2F

@milesvp
Copy link

milesvp commented Nov 15, 2015

I've created a pull request for this issue.

#313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants