Radarr v3.2 dotnet5 binary / Radarr v4 dotnet6 binary

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
Starting from scratch for Ombi. I have everything extracted to /usr/local/share/Ombi. Do I need to make a rc.d like I did for Radarr?
 

FrankNAS

Contributor
Joined
Dec 3, 2017
Messages
111
I am going to take a more indepth look at Ombi when I get a bit more free time which hopefully will be later this week.
I might also just stick with OmbiV3 until V4 stabilizes
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
I am going to take a more indepth look at Ombi when I get a bit more free time which hopefully will be later this week.
I might also just stick with OmbiV3 until V4 stabilizes

Any progress so far, Frank? I know a lot of us on TrueNAS are eager to have Ombi working without having to spin up a VM.
 

FrankNAS

Contributor
Joined
Dec 3, 2017
Messages
111
well, v3 uses Cake which I have never been able to get working correctly so back to V4.
Screenshot 2021-04-16 151503.png


A few things to note:
self-contained + singlefile still does not work as it does not seem to bundle in the dotnet libraries.
and possibly related to the above, you need to start Ombi in the same path that contains `appsettings.json`.

finally, this was only tested against Plex (pkg) and Radarr (dotnet variant) but does not appear to have issues with them

if there is more interest ill make a package and another topic
 

FrankNAS

Contributor
Joined
Dec 3, 2017
Messages
111
well, let me know if it works. I put on mega share in the original post.
At some point I need to get around to moving it all to GH
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
I got it working by running
Code:
./Ombi
inside /usr/local/share/Ombi. Now my question is how do I get that to run on it's own and upon server boot?
 

FrankNAS

Contributor
Joined
Dec 3, 2017
Messages
111
the radarr rc file uses daemon to handle automagically restarting the process if it crashes you can yolo find/replace Radarr with Ombi
you can also remove the `--data=${radarr_data_dir} --nobrowser` part as Ombi does not haveuse those.
 

FrankNAS

Contributor
Joined
Dec 3, 2017
Messages
111
daemon creates those when it starts. it contains the PIDs it needs to figure out if its child has crashed. if its not creating them you might have to just make two empty files for it and give them the correct u/g
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
Roger that. Sorry I am not familiar with how it all works but if that’s all I can get it working then. Appreciate it.
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
I created the rc file and it starts the service but Ombi still does not operate unless I run:
Code:
root@ombi:/usr/local/share/Ombi # ./Ombi


Here is my rc.d
Code:
#!/bin/sh

# $FreeBSD$
#
# PROVIDE: ombi
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# ombi_enable:    Set to YES to enable ombi
#            Default: NO
# ombi_user:    The user account used to run the ombi daemon.
#            This is optional, however do not specifically set this to an
#            empty string as this will cause the daemon to run as root.
#            Default: ombi
# ombi_group:    The group account used to run the ombi daemon.
#            This is optional, however do not specifically set this to an
#            empty string as this will cause the daemon to run with group wheel.
#            Default: ombi
# ombi_data_dir:    Directory where ombi configuration
#            data is stored.
#            Default: /var/db/ombi

. /etc/rc.subr
name=ombi
rcvar=${name}_enable
load_rc_config $name

: ${ombi_enable:="NO"}
: ${ombi_user:="ombi"}
: ${ombi_group:="ombi"}
: ${ombi_data_dir:="/config"}

pidfile="${ombi_data_dir}/${name}ombi.pid"
pidfile_child="${ombi_data_dir}/${name}_child.pid"
command="/usr/sbin/daemon"

start_precmd=${name}_precmd
ombi_precmd() {
    if [ ! -d ${ombi_data_dir} ]; then
    install -d -o ${ombi_user} -g ${ombi_group} ${ombi_data_dir}
    fi

    export XDG_CONFIG_HOME=${ombi_data_dir}
    rc_flags="-r -f -p ${pidfile_child} -P ${pidfile} /usr/local/share/Ombi/Ombi >> /dev/null 2>&1 ${rc_flags}


}

run_rc_command "$1"


I follow this up with running
Code:
iocage exec ombi chmod u+x /usr/local/etc/rc.d/ombi
iocage exec ombi sysrc ombi_enable=YES ombi_data_dir=/config ombi_user=ombi ombi_group=ombi
 

FrankNAS

Contributor
Joined
Dec 3, 2017
Messages
111
daemon calls from um... "/usr/sbin/"? I think the only option you have with it is -C which changes to "/". Neither of which seem like they would work in this case. I will look into the further this weekend when I have a bit more time.
 

AirborneTrooper

Contributor
Joined
Jun 20, 2014
Messages
148
I made the rc file based off the Radarr one you provided in your first post. You told me in post 31 to find/replace Radarr with Ombi, so that's what I did. When I run iocage exec radarr service radarr start, it starts without issue, but when I actually try to load the webpage nothing comes up. Only when I run root@ombi:/usr/local/share/Ombi # ./Ombi will Ombi actually start and the website work.
 
Last edited:

stillka

Explorer
Joined
Nov 15, 2014
Messages
55
Hello,

can somebody prepare complete "how-to" guide for people which want install Radarr (.NET version) from scratch to new jail?
 
Top