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?
	
		
			
		
		
	
			
			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
./Ombi
Can you share yours? I don’t know what files to all point to by looking at the Radarr example.you can use a simple rc file to start it automatically
root@ombi:/usr/local/share/Ombi # ./Ombi
#!/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"
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