1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

RestartMe Question

Discussion in 'Help' started by DyNGriFFin, Jun 9, 2017.

  1. DyNGriFFin

    DyNGriFFin Spider

    Messages:
    6
    GitHub:
    DynRelixc
    Hello My Name is DyN I have A Pocket mine Server (MCPE)that's been running for 4 months know , I reset all and I have forget how to make your server restart on its own When it restarts ,

    If your confused this is why I mean :

    When your server said "Server Restarted"
    And you come back and tried to join but it won't restart back to its own. How do I do that?


    Config.yml Here please tell which one that can make your server go online again when it restarts.


    #Configuration file for RestartMe v1.2.0
    broadcastInterval: 1200
    #Sets the interval of the countdown before broadcast, in seconds
    broadcastMessage: "§eServer will restart in {RESTART_FORMAT_TIME}."
    #Sets the message format, will broadcast at the intervals set in broadcastInterval
    countdownMessage: "Server restarting in {RESTART_TIME}..."
    #Sets the message format, will broadcast during countdown
    displayType: chat
    #Sets how players get the countdown message, three options: chat, popup, tip
    memoryLimit: 1200M
    #Sets the max memory that can be allocated before server restarts due to overload
    #B = byte; K = kilobyte; M = megabyte; G = gigabyte; T = terabyte
    overloadQuitMessage: "§eServer restarted due to overload."
    #Sets the message sent to a player when they are kicked because of a memory overload
    quitMessage: "§aServer restarted."
    #Sets the message sent to a player when they are kicked because of a server restart
    restartInterval: 10
    #Sets the interval of the server restart, in minutes
    restartOnOverload: true
    #Set to true to allow server restarts when the server's memory is overloaded
    startCountdown: 03
    #Sets the time when to initiate a countdown, n seconds from restarting
     
    Last edited: Jun 10, 2017
  2. DyNGriFFin

    DyNGriFFin Spider

    Messages:
    6
    GitHub:
    DynRelixc
    Please give me a link on how to make change my RestartMe files so when it restarts , It turns the online again.
     
  3. Thouv

    Thouv Slime

    Messages:
    84
    GitHub:
    adeynes
    Change DO_LOOP to yes in start.sh
     
  4. DyNGriFFin

    DyNGriFFin Spider

    Messages:
    6
    GitHub:
    DynRelixc
    I'm in android Not pc
     
  5. AffanStarPure

    AffanStarPure Baby Zombie

    Messages:
    106
    GitHub:
    AffanStarPure
    You mean on code PHP to change DO_LOOP?
     
  6. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    No. In the start.sh file there's a line that says DO_LOOP=no. You have to change "no" to "yes". This makes the server turn on automatically, after it stops.
    It might not work then. RestartMe depends on setting the start file to automatically start the server when ever it crashes or stops. In reality, RestartMe just stops the server at set times. PocketMine itself takes care of the rest.

    If there is no start file to edit, then it most likely just won't work. Although I do highly not recommend running a server on Android anyways. The Android OS (and devices) simply aren't made for it.
     
    HimbeersaftLP likes this.
  7. AffanStarPure

    AffanStarPure Baby Zombie

    Messages:
    106
    GitHub:
    AffanStarPure
    Oh create file start.sh then put DO_LOOP=yes then put file on RestartMe?
     
  8. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    No. Edit the start.sh file that you use to start PocketMine when on Linux.
     
  9. RoyalMCPE

    RoyalMCPE Slime

    Messages:
    87
    It's not possible to automatically make a server turn back on with a server running on android
     
  10. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Why modify the start.sh? Just start the server with
    Code:
    ./start.sh -l
    
    Android runs on a Linux kernel too. Download some PHP binaries built for Android's architecture, save them in your terminal emulator's directory (somewhere under /data/data because you can't chmod +x files on the SD card in Android), and run the server in the server directory with both -l and -p options, where -p is the option for PHP binary path. For example:

    Code:
    ./start.sh -l -p="/data/data/com.termux/php/php"
    
    if the executable in your PHP installation is located at /data/data/com.termux/php/php, vice versa otherwise.
     
  11. DyNGriFFin

    DyNGriFFin Spider

    Messages:
    6
    GitHub:
    DynRelixc
    Do u have the download link for the binaries ?
     
  12. joeybab3

    joeybab3 Creeper

    Messages:
    3
    GitHub:
    joeybab3
    DyN, are you rooted? if not then you won't be able to perform SOFe's suggestion.
     
  13. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    You don't need root to do it. You can download binaries to /data/data directly and execute the binaries there directly.
     
    jasonwynn10 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.