net-p2p/sonarr: Fix rc script
Sonarr 3.x has a new binary name Pointyhat: me Reported by: H3llSp4wn on IRC
This commit is contained in:
parent
6b400058c6
commit
342016e3e3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=569054
2 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue