Date: Tue, 23 Mar 2021 19:51:38 +0000 (UTC) From: Mark Felder <feld@FreeBSD.org> 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 Message-ID: <202103231951.12NJpc4j058846@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103231951.12NJpc4j058846>