Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hibernation applyed on multiple servers for pterodactyl panel #7

Closed
Ho2x opened this issue Mar 23, 2020 · 10 comments
Closed

Hibernation applyed on multiple servers for pterodactyl panel #7

Ho2x opened this issue Mar 23, 2020 · 10 comments

Comments

@Ho2x
Copy link

Ho2x commented Mar 23, 2020

Hello,
are you able to write the same code in javascript for the pterodactyl panel?

If yes I can even pay you for this.

thank you

@gekigek99
Copy link
Member

Yea sure I may be able to help you but i need a little more info!

Why do you need specifically javascript?
How are you trying to integrate this script in the pterodactyl panel?
What is your general situation? (what games are we talking about? how many? is it all on one machine?)
Do you want to use pterodactyl because it uses Docker so the start and stop of the server is immediate?

just to make an idea of your specific case... mybe we can make it work without having to rewrite the entire pterodactyl repo... 👍

@gekigek99
Copy link
Member

Do you need to visualize remotely with a browser all the servers running or you just need to run multiple game servers on the same machine?

@Ho2x
Copy link
Author

Ho2x commented Mar 23, 2020

Hello,
Thank you for your positive response.
So for a little summary.
I am busy redoing the administration of my servers with the pterodactyl panel.
I currently have two centos 7 servers.
Indeed pterodactyl uses docker and Javascript well.
I don't know more than that.
I would like all minecraft servers to be automatically, when creating the server, with a hibernation system.
Kind of like the McMyAdmin panel suggests.

Thank you for your time and your work.

@Ho2x
Copy link
Author

Ho2x commented Mar 23, 2020

Yes, I use the browser to manage all the servers (pterodactyl panel) if your code can be executed when creating a new server this would be perfect. An option for the user seems to me to be too complicated (enable-disable sleep mod)
But if I already know how to force minecraft vanilla or mod servers to have a system like McMyAdmin. This would save me a lot of cpu and ram resource for servers with zero players.

@gekigek99
Copy link
Member

gekigek99 commented Mar 23, 2020

i could write an external program that launches automatically the docker server (and i would write some config file so that it is easy to add each docker id in a simple manner)
if you run from terminal this command and while keeping it running you check the panel, does it shows as running?:
docker run -i -t <image-id> /bin/bash
(you should find the image-id in "server configuration" with the variable name: "UUID / Docker Container ID")

@Ho2x
Copy link
Author

Ho2x commented Mar 23, 2020

Indeed, it seems to stay online

@gekigek99
Copy link
Member

yea i mean...

  • from the browser set the minecraft server offline
  • then run the command via ssh or terminal
  • finally check if on the browser the minecraft server is shown as launched (and everything looks as normal)

if it works i can find a workaround that can work even if pterodactyl gets updated/changed

@gekigek99 gekigek99 changed the title Hibernate javascript pterodactyl panel Hibernate applyed on pterodactyl panel Mar 24, 2020
@gekigek99 gekigek99 changed the title Hibernate applyed on pterodactyl panel Hibernation applyed on multiple servers for pterodactyl panel Mar 24, 2020
@gekigek99
Copy link
Member

gekigek99 commented Mar 24, 2020

Ok I have found a solution for this problem.

I will write something in python completely detached from pterodactyl panel in the next weeks so that it works whatever the pterodactyl version is.

Please contact me on
gekigek.99.dum01@gmail.com
for further informations so that I can close this issue.

@gekigek99
Copy link
Member

@Ho2x if you are still interested i wrote a cool program that does exacly this for pterodactyl

I've uploaded it on mc market and waiting for verification but if you need it I can send it to you

@gekigek99
Copy link
Member

@Ho2x pterodactyl server hibernation is finally out!

You check it out here!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants