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

Restart server if frozen

Discussion in 'Help' started by Khome, Jul 17, 2018.

  1. Khome

    Khome Spider Jockey

    Messages:
    44
    Hi, i was wondering if it would be possible to restart (kill and start again) a pocketmine server if it has been frozen for x amount of minutes with some sort of script? If so please could you tell me how. Im using linux. Thank you very much
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    not possible, unless you have a way to check for server's responsiveness

    assuming you are using TMUX to manage windows of servers
    you need to input a command say "testping" which will always return "testpong"
    and some way to read the output of tmux like this this
    you can type in testping periodically and expect a testpong or the server will be killed and restart
     
    Khome 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.