Multiple startup commands per egg #416

Closed
opened 2026-02-04 17:56:48 +03:00 by OVERLORD · 3 comments
Owner

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.:

"startup_commands": {
    "Default": "..........",
    "Beta Branch": "..........",
    "Experimental Branch": ".........."
},

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.
So maybe the default startup command has 2 variables while the beta branch one has 4 variables etc.
Can be added later

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 <div type='discussions-op-text'> <sup>Originally posted by **Boy132** July 4, 2025</sup> 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.: ```json "startup_commands": { "Default": "..........", "Beta Branch": "..........", "Experimental Branch": ".........." }, ``` 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. So maybe the default startup command has 2 variables while the beta branch one has 4 variables etc.~ _Can be added later_</div>
OVERLORD added the 🟡 medium label 2026-02-04 17:56:48 +03:00
Author
Owner

@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 👌

@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 👌
Author
Owner

@aloshTM commented on GitHub (Sep 5, 2025):

maybe/maybe not, it will fix the problem with java 8 not knowing what -XX:MaxRAMPercentage is 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 PR
or a fix could be to grab the maximum amount of system RAM, and then turn it into MB and use that as -Xmx but not really practical and every distribution has their own way of handling stuff like that
or 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): maybe/maybe not, it will fix the problem with java 8 not knowing what `-XX:MaxRAMPercentage` is 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 PR or a fix could be to grab the maximum amount of system RAM, and then turn it into MB and use that as `-Xmx` but not really practical and every distribution has their own way of handling stuff like that or 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
Author
Owner

@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

@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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#416