AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() Ah and give your script a shebang: #!/bin/dash Since it’s a systemd service that runs naturally in background, try it with 14 : Custom script (background, no autologin) autostart option. Java someone here would be kind enough to review this post and tell me in what way I’ve managed to screw up, I’d very much appreciate it. # Add custom program arguments to this file in the next line before the or # Add custom JVM arguments to the user_jvm_args.txt # Forge requires a configured set of both JVM and program arguments. rwxr-xr-x 1 root root 365 1 jan 16.00 /opt/minecraft/run.shįinally, this is what the Minecraft Forge server script (“run.sh”) looks like: #!/usr/bin/env sh No error message is given, like the following output shows: cd sudo anyone interested, here are the permissions for custom.sh and /opt/minecraft/run.sh: -rwxr-xr-x 1 root root 159 1 jan 20.54 /var/lib/dietpi/dietpi-autostart/custom.sh custom.sh”), the script doesn’t seem to be executed at all sudo never asks me for my password, and the bash prompt immediately re-appears. by changing directory to “/var/lib/dietpi/dietpi-autostart/”, and then typing “sudo. When launching the script “manually” using sudo in a ssh window (i.e. A “screen -ls” check reveals no deattched screen has been started, and running “ps -all” or “htop” shows no Java process (i.e. Unfortunately, when starting the server the script doesn’t launch. Here are the contents of the custom.sh script:.“/var/lib/dietpi/dietpi-autostart/custom.sh”), I’m asking dietpi-config to run it as root. When editing the autostart-script (stored as the default file name, i.e.Custom script (foreground, with autologin”). Trying to keep things as simple as possible, I’m using the dietpi-config tool to setup the autostart using the menu item “ 9.If anyone can point me in the right direction, I’d be most grateful. As Linux newbie one thing has alluded me altogether I can’t get the server script to autostart when rebooting the server. ![]() Using these instructions to get the Minecraft server up and running, I’ve so far managed to get everything working - mostly. I use it in its “headless” configuration, i.e. Just having bought a Raspberry Pi to use as a small Minecraft Forge Server, I am delighted to say DietPi has so far worked really well.
0 Comments
Read More
Leave a Reply. |