hmlendea / minecraft-server-raspberrypi

My Minecraft server optimised for Raspberry Pi 4
GNU General Public License v3.0
4 stars 1 forks source link

papermc: command not found #1

Open CrashWriter opened 7 months ago

CrashWriter commented 7 months ago

status.sh: line 4: papermc: command not found

can you explain me that

hmlendea commented 6 months ago

Currently, the check to see whether the server is running assumes that it was run using papermc as in the papermc package (e.g. for Arch Linux: https://aur.archlinux.org/packages/papermc)

Once it's installed, /etc/conf.d/papermc should be updated with something like this:

SESSION_NAME="papermc"

# System parameters for java
#  -Xms sets the intial heap size (must be a multiple of 1024 and greater than 2MB, no spaces!)
#  -Xmx sets the maximum heap size (must be a multiple of 1024 and greater than 2MB, no spaces!)
SERVER_START_CMD="bash './${MAIN_EXECUTABLE}'"

And the server controlled by starting/restarting/stopping the papermc.service systemd service.

hmlendea commented 6 months ago

In the future I'll look into trying to decouple from the papermc package, so that it will work even if it's not installed.