Solved CraftBukkit read config from wrong file.

Discussion in 'Bukkit Help' started by XtenD, Jul 24, 2012.

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

    XtenD

    Today i restarted my server, and i see that craftbukkit generates new "d" config file, bukkit ignores server.properties, and reads settings from "d". I use Ubuntu Server 11.10. I tried download other CraftBukkit builds, but this is doesn't help. Also i tried launch server from ramdisk (To check HDD status) on ramdisk i take same problem. WtfHax?

    SOLVED,THX4ALL.
     
  2. Post the start Script file.
     
  3. Offline

    XtenD

  4. Do you have any Shell script?
    like the .bat on windows
     
  5. Offline

    XtenD

    Code:
    Start.sh (launch: sh start.sh)
    screen -mS minecraft java -Xmx24G -jar craftbukkit.jar -cp craftbukkit.jar
     
  6. What Happens if you create a new server in another folder, And use the same Shell script?
    Does it still make the "d"?
     
  7. Offline

    XtenD

    Yes, it make the "d", on ramdisk he do it too.
     
  8. Doesnt make any sens, If you run a new server = no plugins, Just default files, It would not change how files is created, I dont know if i can help you, Try another shell, maybe.
     
  9. Offline

    XtenD

    Hmm, when i startup it from terminal by java -Xmx24G -jar craftbukkit.jar -cp craftbukkit.jar , its works normally. Is there error in screen/sh script?
     
  10. Offline

    Omnitv

    TnT should help he too uses Linux.
     
  11. Offline

    TnT

  12. Offline

    XtenD

    Ok, when i remove -cp option server can't start.
    All i can do it run it directly:
    screen -mS minecraft java -Xmx12G -jar craftbukkit.jar
    Is there some methods to run it as batch script?

    Also when i run that script, it tells me cd: 3: can't cd to /home/xtend/server
    Code:
    #! /bin/sh
    BINDIR="$(dirname "$(readlink -fn "$0")")"
    cd "$BINDIR"
    screen -mS minecraft java -Xmx12G -jar craftbukkit.jar
     
  13. Offline

    TnT

    The script I listed should work if you are running the server from inside the directory. It has no change directory commands or anything in it, so I have no idea why it would be trying to cd to /home/xtend/server
     
  14. Offline

    XtenD

    Ok, i think i got it!
    the trouble was that start.sh was in Unicode format, i dont realy know what Unicode does in my sh script. But i downloaded "dos2unix" app and run it on my script:
    dos2unix start.sh
    After that it works like a boss.
    The problem solved. Thanks all for your suggestions!
     
  15. Offline

    cray_Z

    Plz set thread prefix to 'Solved'
     
    Omnitv likes this.
Thread Status:
Not open for further replies.

Share This Page