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