From 2b1f62e74fb456db815996c744d52fb8c8524e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Thu, 11 Dec 2025 12:30:27 +0100 Subject: [PATCH] Fixes (#9874) --- ct/sonarr.sh | 2 ++ install/sonarr-install.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ct/sonarr.sh b/ct/sonarr.sh index 092d9d638..b65c8fd2b 100644 --- a/ct/sonarr.sh +++ b/ct/sonarr.sh @@ -27,6 +27,7 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit fi + msg_info "Stopping Service" systemctl stop sonarr msg_ok "Stopped Service" @@ -38,6 +39,7 @@ function update_script() { mv Sonarr /opt rm -rf SonarrV4.tar.gz msg_ok "Updated Sonarr" + msg_info "Starting Service" systemctl start sonarr msg_ok "Started Service" diff --git a/install/sonarr-install.sh b/install/sonarr-install.sh index a2d80cca7..e1988a761 100644 --- a/install/sonarr-install.sh +++ b/install/sonarr-install.sh @@ -24,7 +24,6 @@ curl -fsSL "https://services.sonarr.tv/v1/download/main/latest?version=4&os=linu tar -xzf SonarrV4.tar.gz mv Sonarr /opt rm -rf SonarrV4.tar.gz - msg_ok "Installed Sonarr v4" msg_info "Creating Service" @@ -32,12 +31,14 @@ cat </etc/systemd/system/sonarr.service [Unit] Description=Sonarr Daemon After=syslog.target network.target + [Service] Type=simple ExecStart=/opt/Sonarr/Sonarr -nobrowser -data=/var/lib/sonarr/ TimeoutStopSec=20 KillMode=process Restart=on-failure + [Install] WantedBy=multi-user.target EOF