mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 11:20:41 +03:00
Multiple startup commands per egg #416
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Boy132 on GitHub (Sep 4, 2025).
Originally assigned to: @Boy132 on GitHub.
Discussed in https://github.com/pelican-dev/panel/discussions/1482
Originally posted by Boy132 July 4, 2025
Right now an egg only has one startup command and users can use startup variables to customize it.
But for some cases startup variables are either too limited or don't fit the use case.
Now imagine if you could add multiple startup commands to the egg, similar to how it works with docker images, e.g.:
On the frontend the user would select the startup command via a Select. So very similar to the docker image.
This could be useful for choosing between branches or versions of a game. (Or something in Minecraft: "Normal" startup vs startup with additional flags)
If we want to go even further we could also make startup variables depend on the chosen startup command.Can be added laterSo maybe the default startup command has 2 variables while the beta branch one has 4 variables etc.
@rmartinoscar commented on GitHub (Sep 4, 2025):
That would be a perfect use case to fix https://github.com/pelican-eggs/minecraft/pull/92 for example 👌
@aloshTM commented on GitHub (Sep 5, 2025):
maybe/maybe not, it will fix the problem with java 8 not knowing what
-XX:MaxRAMPercentageis but still probably need to force system memory to be allocated on java 8 for example (by disabling the Unlimited option), since it still doesnt know what 0 is which could actually be doable with this PRor a fix could be to grab the maximum amount of system RAM, and then turn it into MB and use that as
-Xmxbut not really practical and every distribution has their own way of handling stuff like thator a REALLY shit fix would be to use a arbitrary value set but again it might not even have that much max to begin with/etc etc
@aloshTM commented on GitHub (Sep 5, 2025):
just looked at the original PR, not what i had in mind.
thought it was specific docker image startup commands but honestly doing it via the egg isnt a terrible idea aswell