Solved error on start my server !! **VERY URGENT**

Discussion in 'Bukkit Help' started by mamaloo, Aug 21, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    mamaloo

    Hello, I installed the forum have done all the steps but the problem I encountered. Of course, my vps is centos 32bit Linux. Can you please help me to solve the problem? My problem is as follows:
    /etc/init.d/minecraft: line 37: syntax error near unexpected token `newline'
    /etc/init.d/minecraft: line 37: ` if ps ax | grep -v grep | grep -v -i SCREEN | grep $SERVICE > '
     
  2. Offline

    DZComposer

    For anyone having similar issues, this is a shell script syntax error, not an error with Minecraft or Bukkit. It is the Linux (or BSD or whatever) alternative to a Windows batch (.bat) file error.

    Hard to pinpoint the exact issue without seeing the contents of the /etc/init.d/minecraft file, but if you see a similar error on your servers, you know where to look: your startup script.

    This particular startup script seems to be a bit more complicated. ps is the command that lists running processes, and grep searches for things. Looks like that was supposed to be in an if statement, so my guess is the script monitors the server process and restarts it if it crashes.
     
Thread Status:
Not open for further replies.

Share This Page