From owner-svn-ports-head@freebsd.org Tue Mar 23 19:51:39 2021 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 010A45B9DCB; Tue, 23 Mar 2021 19:51:39 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F4hp26fcVz3sMH; Tue, 23 Mar 2021 19:51:38 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D399526C64; Tue, 23 Mar 2021 19:51:38 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 12NJpcYK058848; Tue, 23 Mar 2021 19:51:38 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 12NJpc4j058846; Tue, 23 Mar 2021 19:51:38 GMT (envelope-from feld@FreeBSD.org) Message-Id: <202103231951.12NJpc4j058846@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Tue, 23 Mar 2021 19:51:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r569054 - in head/net-p2p/sonarr: . files X-SVN-Group: ports-head X-SVN-Commit-Author: feld X-SVN-Commit-Paths: in head/net-p2p/sonarr: . files X-SVN-Commit-Revision: 569054 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2021 19:51:39 -0000 Author: feld Date: Tue Mar 23 19:51:38 2021 New Revision: 569054 URL: https://svnweb.freebsd.org/changeset/ports/569054 Log: net-p2p/sonarr: Fix rc script Sonarr 3.x has a new binary name Pointyhat: me Reported by: H3llSp4wn on IRC Modified: head/net-p2p/sonarr/Makefile head/net-p2p/sonarr/files/sonarr.in Modified: head/net-p2p/sonarr/Makefile ============================================================================== --- head/net-p2p/sonarr/Makefile Tue Mar 23 19:47:16 2021 (r569053) +++ head/net-p2p/sonarr/Makefile Tue Mar 23 19:51:38 2021 (r569054) @@ -2,7 +2,7 @@ PORTNAME= sonarr PORTVERSION= 3.0.5.1144 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= http://download.sonarr.tv/v3/main/${PORTVERSION}/ DISTNAME= Sonarr.main.${PORTVERSION}.linux Modified: head/net-p2p/sonarr/files/sonarr.in ============================================================================== --- head/net-p2p/sonarr/files/sonarr.in Tue Mar 23 19:47:16 2021 (r569053) +++ head/net-p2p/sonarr/files/sonarr.in Tue Mar 23 19:51:38 2021 (r569054) @@ -23,10 +23,10 @@ load_rc_config $name : ${sonarr_user:="sonarr"} : ${sonarr_data_dir:="%%PREFIX%%/sonarr"} -pidfile="${sonarr_data_dir}/nzbdrone.pid" +pidfile="${sonarr_data_dir}/sonarr.pid" procname="%%PREFIX%%/bin/mono" command="/usr/sbin/daemon" -command_args="-f ${procname} %%DATADIR%%/NzbDrone.exe --nobrowser --data=${sonarr_data_dir}" +command_args="-f ${procname} %%DATADIR%%/Sonarr.exe --nobrowser --data=${sonarr_data_dir}" start_precmd=sonarr_precmd sonarr_precmd() @@ -36,6 +36,10 @@ sonarr_precmd() if [ ! -d ${sonarr_data_dir} ]; then install -d -o ${sonarr_user} ${sonarr_data_dir} fi + + # Unwritable pids allow the service to start, but fails to work + # Rare, but if you are debugging as root and accidentally start the service... + /bin/rm -f ${pidfile} } run_rc_command "$1"