Viewing Console from Custom Startup Script (Ram Disk World)

Discussion in 'Bukkit Help' started by Iroh, Aug 5, 2014.

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

    Iroh

    Hello,

    After setting up my vps and deciding I wasn't totally happy with it I decided to try and set up a ram disk to use a world.

    I followed this guide and after a few hours of trouble shooting I managed to work out all the problems.
    (Just a note when set up correctly the custom startup script allows you to ./minecraft {start|stop|update|etc} instead of running ./start.sh. However I cannot seem to figure out how I am supposed to view the server now!

    When I was running my server with the standard launch code, the console was logging in my current screen, however now it does not. I can still join my server however I have no console access which is a problem.

    Note: I set up my first Linux (command line only) machine (Ubuntu server 14.04) today and have been reading all day on how to use it correctly so I apologize in advance for any noobish mistakes (;

    Thanks,
    Iroh
    ***Edit: Here is the code the script uses to start the server.
    Code:
    mc_start() {
      if mc_status; then
        echo "Tried to start but $JARFILE was already running!"
      else
        echo "$JARFILE was not running... starting."
        if [ -d $MCSTORE/$WORLD.bak ]; then
          echo "last $WORLD.bak still exist, crashed warning! manual check required!$
          exit 1
        fi
        cd $MCPATH
        if [ ! -f "$MCPATH/$JARFILE" ]; then
          echo "Ram drive empty...  prepping."
          as_user "cp -R $MCSTORE/* $MCPATH/"
        fi
        as_user "cd $MCPATH && screen -dmS minecraft $INVOCATION"
        sleep 7
        if mc_status; then
          echo "$JARFILE is now running."
    And here are the settings that refernces:
    Code:
    #Settings
    JARFILE='craftbukkit.jar'
    USERNAME="minecraft"
    MCSTORE="/home/$USERNAME/minecraft"
    MCPATH="/home/$USERNAME/minecraft_ramdisk"
    CPU_COUNT=1
    INVOCATION="java -Xmx2048M -Xms2048M -server -jar $JARFILE -o false"
    BACKUPPATH="/home/$USERNAME/minecraft_backups/"
    WORLD=world
    
     
  2. Offline

    MCMatters

    Iroh screen command?
     
  3. Offline

    Iroh

    I tried "screen -ls" to show availavle screens and only one came up and it was attached so I assume that was the one I was in.
     
  4. Offline

    MCMatters

    Iroh, u can always display the latest.log on a webserver
     
  5. Offline

    Iroh

    That doesn't change the fact that I can't run console cmds.
     
  6. Offline

    MCMatters

    there is a plugin called websend that can run cmds, or use rcon
     
  7. Offline

    Iroh

    Yes I know how to run console cmds in-game but I would really prefer to be able to use the actual console.
     
  8. Offline

    MCMatters

    websend allows u to run cmds via a website
     
  9. Offline

    Iroh

    Yes creating yet another insecure layer of the server.

    I'm not really interested in workarounds.
     
  10. Offline

    MCMatters

    u could create a encripted login script

    or like i said use rcon.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
Thread Status:
Not open for further replies.

Share This Page