From 70586d247d3c27b3852dbcbe52b11c2e69b22619 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Fri, 3 Jan 2020 18:18:48 +0100 Subject: [PATCH] v6.28 + DietPi-Software | Home Assistant: Assure that correct data dir owner is re-applied on reinstalls, in case it got changed for some reason + DietPi-Software | Set some syslog identifiers to systemd units, where the ExecStart binary is a shell script or runtime binary which does not necessarily reflext the software name nicely --- dietpi/dietpi-software | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dietpi/dietpi-software b/dietpi/dietpi-software index 35f0e67bc5..b3d390b22e 100644 --- a/dietpi/dietpi-software +++ b/dietpi/dietpi-software @@ -11693,6 +11693,7 @@ Description=Roon Server (DietPi) After=network.target [Service] +SyslogIdentifier=roonserver Environment=ROON_DATAROOT=$G_FP_DIETPI_USERDATA/roonserver ExecStart=$G_FP_DIETPI_USERDATA/roonserver/start.sh @@ -11730,6 +11731,7 @@ Wants=network-online.target After=network-online.target mariadb.service [Service] +SyslogIdentifier=homeassistant User=homeassistant ExecStart=/home/homeassistant/homeassistant-start.sh @@ -11745,11 +11747,11 @@ _EOF_ [[ -d '/home/homeassistant/.homeassistant' ]] && mv /home/homeassistant/.homeassistant $G_FP_DIETPI_USERDATA/homeassistant mkdir -p $G_FP_DIETPI_USERDATA/homeassistant - chown -R homeassistant:homeassistant $G_FP_DIETPI_USERDATA/homeassistant fi rm -Rf /home/homeassistant/.homeassistant ln -s $G_FP_DIETPI_USERDATA/homeassistant /home/homeassistant/.homeassistant + chown -R homeassistant:homeassistant $G_FP_DIETPI_USERDATA/homeassistant fi @@ -11837,6 +11839,7 @@ _EOF_ Description=nukkit (DietPi) [Service] +SyslogIdentifier=Nukkit WorkingDirectory=/usr/local/bin/nukkit ExecStart=/bin/bash -c 'java -jar /usr/local/bin/nukkit/nukkit.jar'