How to use/create start.sh on Pterodactyl Print

  • 3

Do you need to have your server startup with ./start.sh? The following guide should assist you 

First create a `start.sh` file in the index. On our Web File Manager, you should see that you are in the /home/container directory, or if you are connecting using the external SFTP server you would be in the / directory.

Add the following default startup line, which is.

java -Xms128M -Xmx[server memory in megabits. Ex. 1GB would be 1024]M -jar server.jar

If you want to use a different file name that contains your server jar. Change server.jar on the line above to [New File Name].jar

Next, you must set the start.sh to 744. You must use the external SFTP to change this one value.

 

Lastly, you must request one of our System Administrator to change the Startup Command to /home/container/start.sh In the meantime, you should be capable of completing the beginning steps while you wait for us to switch out the startup command.

---

Commonly Faced Issues:

/entrypoint.sh: line 15: /home/container/start.sh: Permission denied You forgot to allow start.sh execute permission. Make sure the file has 744 access.

 


Was this answer helpful?

« Back