summaryrefslogtreecommitdiff
path: root/net-p2p/radarr/files/radarr.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/radarr/files/radarr.in')
-rw-r--r--net-p2p/radarr/files/radarr.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/net-p2p/radarr/files/radarr.in b/net-p2p/radarr/files/radarr.in
index 85ed97970c4a..afc4f037df70 100644
--- a/net-p2p/radarr/files/radarr.in
+++ b/net-p2p/radarr/files/radarr.in
@@ -23,7 +23,7 @@ load_rc_config $name
: ${radarr_user:="radarr"}
: ${radarr_data_dir:="%%PREFIX%%/radarr"}
-pidfile="${radarr_data_dir}/nzbdrone.pid"
+pidfile="${radarr_data_dir}/radarr.pid"
procname="%%PREFIX%%/bin/mono"
command="/usr/sbin/daemon"
command_args="-f ${procname} %%DATADIR%%/Radarr.exe --nobrowser --data=${radarr_data_dir}"
@@ -36,6 +36,10 @@ radarr_precmd()
if [ ! -d ${radarr_data_dir} ]; then
install -d -o ${radarr_user} ${radarr_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"