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

is_running() appears to be creating busted .pid files #148

Open
ajwharton opened this issue Aug 18, 2013 · 1 comment
Open

is_running() appears to be creating busted .pid files #148

ajwharton opened this issue Aug 18, 2013 · 1 comment

Comments

@ajwharton
Copy link

When I start the server using /etc/init.d/minecraft start is creates a pid file that is bogus. Example, the pidfile "server_screen.pid" on my Ubuntu box right now contains the following chars:

1014208341827910440918982452696

The pid is actually the beginning of the string, to whit:

andrew@plutonium:/opt/craftbukkit$ ps aux | grep java
bukkit 1014 0.0 0.0 27028 1264 ? Ss 09:26 0:00 SCREEN -dmS server_screen java -Xmx6144M -Xms4096M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit.jar nogui
bukkit 1015 15.9 13.1 7740936 1075532 pts/2 Ssl+ 09:26 18:17 java -Xmx6144M -Xms4096M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit.jar nogui

Not sure why, but when I delete the pid file on a running server and then shut it down, it creates a pid file with just the pid in it. Clearly, there are two competing pid file algos.

This is in the zip that I pulled on 8/17/2013

@ajwharton
Copy link
Author

I think that this might be an artifact of the "Rogue Pidfile Found!" fix, BTW.

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

1 participant