Hi All,
i am new to nukkit and impressed how easy the installation and the configuration in ubuntu 20.04 LTS was. I connect to the server via SSH.
i managed to write the start.sh script and i am able to run it with:
But now i am struggling with starting the server after ubuntu reboots. What i have tried so far:
i have added the following line to the crontab of my user:
does not work. cron.log does not show any errors just the execution of line above.
Tried the same line while logged in as user -> works.
so i thought its because of the non existing ssh "window".
so i changed the code of the start.sh to:
I am able to resume to the screen of the runnig server after reboot. Instead of starting the server the nukkit installation routine appears and asks for selecting the language. After checking my home directory i can see he was tring to install in home/ubuntu/ instead of /home/ubuntu/nukkit/.
So i was trying to start the script manually
with the same result. He was trying to install the server in the wrong location.
I tried several other things but to shorten this storry a bit i came to the result the script can only be executed correctly when changing to the
folder first and executing the script with
I am not using linux on a regular base so i am not sure what to do else to get this solved.
I hope some one of you can help me by solving my issue.
Thanks
Sebastian
i am new to nukkit and impressed how easy the installation and the configuration in ubuntu 20.04 LTS was. I connect to the server via SSH.
i managed to write the start.sh script and i am able to run it with:
Code:
./start.sh
i have added the following line to the crontab of my user:
Code:
@reboot /home/ubuntu/nukkit/start.sh
#
Tried the same line while logged in as user -> works.
so i thought its because of the non existing ssh "window".
so i changed the code of the start.sh to:
Code:
/usr/bin/screen -dmS NukkitServer /usr/bin/java -Xms1G -Xmx1G -jar /home/ubuntu/nukkit/nukkit.jar
So i was trying to start the script manually
Code:
/usr/bin/screen -dmS NukkitServer /usr/bin/java -Xms1G -Xmx1G -jar /home/ubuntu/nukkit/nukkit.jar
I tried several other things but to shorten this storry a bit i came to the result the script can only be executed correctly when changing to the
Code:
/home/ubuntu/nukkit/
Code:
./start.sh
I hope some one of you can help me by solving my issue.
Thanks
Sebastian