From efbbc7b735c0b8f53f02ca19f9babfcdb7308153 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Sat, 4 Jan 2025 13:31:23 +0700 Subject: [PATCH] v9.10 - DietPi-Software | Cuberite: Run in new detached foreground mode, to enhacence systemd tracking logs and service status: https://github.com/cuberite/cuberite/pull/5592 --- dietpi/dietpi-software | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index 429479492b..efbf507215 100755 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -8385,17 +8385,17 @@ location = /.well-known/caldav { return 301 /baikal/html/dav.php; }' > /etc/ngi then # https://github.com/cuberite/cuberite/blob/master/easyinstall.sh case $G_HW_ARCH in - 3) local path='aarch64/Cuberite.tar.gz';; - 10) local path='x86_64/Cuberite.tar.gz';; - *) local path='armhf-raspbian/Cuberite.tar.gz';; + 3) local arch='aarch64';; + 10) local arch='x86_64';; + *) local arch='armhf-raspbian';; esac - Download_Install "https://download.cuberite.org/linux-$path" /mnt/dietpi_userdata/cuberite + Download_Install "https://download.cuberite.org/linux-$arch/Cuberite.tar.gz" /mnt/dietpi_userdata/cuberite # User Create_User -d /mnt/dietpi_userdata/cuberite cuberite - # Service: Needs to be Type=forking, else it shuts down automatically after startup has finished :/ ... + # Service cat << '_EOF_' > /etc/systemd/system/cuberite.service [Unit] Description=Cuberite (DietPi) @@ -8403,10 +8403,9 @@ Wants=network-online.target After=network-online.target [Service] -Type=forking User=cuberite WorkingDirectory=/mnt/dietpi_userdata/cuberite -ExecStart=/mnt/dietpi_userdata/cuberite/Cuberite -d +ExecStart=/mnt/dietpi_userdata/cuberite/Cuberite --detached [Install] WantedBy=multi-user.target