Hello,
I installed papermc and wanted to tweak the java heap memory max from default 1024mb to 2048m (I run it on a 4GB raspi 4).
I edited the service via DietPi-Services like mentioned here Gaming and Emulation Software Options - DietPi.com Docs.
When I try now to start the service I get this error message:
papermc.service: Failed with result 'exit-code'.
systemctl status papermc.service gives me this:
papermc.service: Service has more than one ExecStart= setting, which is only allowed for Type=oneshot services. Refusing.
So I guess it now uses the default ExecStart= and my uncommented ExecStart=, which is not a wanted behaviour?
Indeed that is missing! It is always required to unset the previous value, else it is handled as a second “ExecStart” directive, not supported on this type of service. Good find.
I have anothet issue.
I wanted to add start arguments to java, bc of the log4j security breach.
I edited the service via dietpi-services but the dietpi-services_edit.conf at /etc/systemd/system/papermc.service.d was not changed, but I see the changes in dietpi-services.
For now I edited the dietpi-services_edit.conf themself.