Ahtenus / minecraft-init

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

more "Rogue pidfile found!", works with direct command #152

Closed Nogbit closed 11 years ago

Nogbit commented 11 years ago

Getting the "Rogue pidfile found!" error on start using the config option for SERVICE=$CB_JAR. However, switching to $MC_JAR works (but I want Bukkit). Permissions are all set for my non root user.

I tried running this command directly and it works fine java -Xmx2G -Xms2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=1 -XX:+AggressiveOpts -jar craftbukkit.jar nogui

However, using this config I get http://pastebin.com/jh0b8X8H

Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. Rogue pidfile found! ^C SIGINIT CALLED - FORCE EXITING! KILLING SERVER PROCESSES!!! Killing PID: 4836 /sbin/service: line 66: 4836 Terminated env -i PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS}

Nogbit commented 11 years ago

Removing it from /etc/rc.local and running manually after a reboot I get the following (my server_screen.pid has one line in it with the contents of 3023).....

[minecraft@centos bukkit]$ service minecraft start Rogue pidfile found! Still not running, waiting a while longer... Failed to start, aborting.

Nogbit commented 11 years ago

UGGG! I did not have craftbukkit.jar in the same dir as the MC jar that worked, I instead had it in the same dir as the startup script, all is good now.