diff options
author | Mark Felder <feld@FreeBSD.org> | 2021-03-23 19:51:38 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2021-03-23 19:51:38 +0000 |
commit | 342016e3e36709fe1e2a8b93ef4c7c6d546add48 (patch) | |
tree | ef1c99cec709a0883eee921ed5cc4c719a0e28f2 /net-p2p/sonarr | |
parent | 6b400058c62372658799df35e4208ed655f53baa (diff) |
net-p2p/sonarr: Fix rc script
Sonarr 3.x has a new binary name
Pointyhat: me
Reported by: H3llSp4wn on IRC
Notes
Notes:
svn path=/head/; revision=569054
Diffstat (limited to 'net-p2p/sonarr')
-rw-r--r-- | net-p2p/sonarr/Makefile | 2 | ||||
-rw-r--r-- | net-p2p/sonarr/files/sonarr.in | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/net-p2p/sonarr/Makefile b/net-p2p/sonarr/Makefile index 4a92b4643370..ad716c0f94fb 100644 --- a/net-p2p/sonarr/Makefile +++ b/net-p2p/sonarr/Makefile @@ -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 diff --git a/net-p2p/sonarr/files/sonarr.in b/net-p2p/sonarr/files/sonarr.in index 29ea352d6d72..95778eb19fcb 100644 --- a/net-p2p/sonarr/files/sonarr.in +++ b/net-p2p/sonarr/files/sonarr.in @@ -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" |