server/minecraft: systemd waits until server exited

dehydrated
Felix Stupp 5 years ago
parent 898a30789a
commit ad24eed923
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -21,3 +21,4 @@ ReadWriteDirectories={{ data_directory }}
WorkingDirectory={{ data_directory }}
ExecStart=/usr/lib/jvm/java-{{ java_version }}-openjdk-amd64/bin/java -Xms{{ minecraft_start_ram | quote }} -Xmx{{ minecraft_max_ram | quote }} -jar {{ installation_directory | quote }}/server.jar nogui
ExecStop={{ remote_control_script }} stop
ExecStop=/bin/bash -c "while ps -p $MAINPID > /dev/null; do /bin/sleep 1; done"

Loading…
Cancel
Save