pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.84k stars 1.75k forks source link

pre-startup and pre-stop/post-stop options (for using sv_downloadurl for csgo and source engine games) #1705

Open HostRK1 opened 5 years ago

HostRK1 commented 5 years ago

Is your feature request related to a problem? Please describe. No.

Describe the solution you'd like Pterodactyl could add an option called server pre-start and server post-stop (as in GameCP) so we can add a comand so make a symlink (with ln -S) in the web folder to the user server. So for example the link: https://panel.example.com/dwd/serverip:port/maps/de_dust2.bsp could be downloaded. Also you need to add the option to put this type of link in the config file (using the egg configuration) with the variable of server ip and port or using server id or someting like that.

Also you could make an option called fastdl which will do this automaticaly. CS:GO servers and CS 1.6 and many others source games really need server download urls which need to be updated at every server restart (user could add a new map or sounds or something like that. This could be implemented also by coping server files to the web path, but this will basicaly double the space the server is using.

Describe alternatives you've considered Manually create those symlinks or tring to copy the server files on a web folder and manualy put that link in the config file

Additional context Add any other context or screenshots about the feature request here.

parkervcp commented 5 years ago

You can already do this with variables.

The start command section is quite flexible too.

BippyMiester commented 3 years ago

I would also like to add that this would be amazing as well. Having a pre-startup script would be helpful instead of trying to run more then one command (The actually startup command) in the startup command section. Using curl to download something prior to the actual startup command is yes, apart of the start up, however it would be amazing if we could have a field like the Install Script field that runs a .sh file prior to starting the server.