Ahtenus / minecraft-init

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

pidfile messed up #151

Open shakeyourbunny opened 11 years ago

shakeyourbunny commented 11 years ago

The pidfile with the screen is being messed up with zombie screens, if the bukkit server is not instantanous "ready" and fails subsequently to start the whole thing up.

Solution:

is_running() { 
...
if [ -r "$pidfile" ]
then
     screen -wipe >/dev/null     # add this line

This will clean up the messed pidfile.

Nogbit commented 11 years ago

That didnt work for me, i get Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. Rogue pidfile found!