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

Feature Request: Automatic Script Execution on Server Start/Restart #51

Open
Yashvardhan76 opened this issue Oct 19, 2024 · 0 comments
Open

Comments

@Yashvardhan76
Copy link

ForkGG currently lacks an easy way to execute batch or shell scripts on server startup/restart. I would like to request the ability for ForkGG to automatically detect and run a script.bat (for Windows) or script.sh (for Linux/MacOS) in the server directory before starting the server.

Use Case
I need to run a batch command like this on every restart:
xcopy /y "C:\...\playgorund-1.0-SNAPSHOT.jar" "E:\...\plugins"

Solution
Automatically detect and run script.bat (Windows) or script.sh (Linux/MacOS) before starting the server.
Keep the script optional and empty by default.

Benefits
Simplifies automation tasks like copying files or backups.
Reduces the need for manual file modifications or custom Java parameters.

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

1 participant