I was successful in portsnap'ing; make install; qbittorrent-nox from freshports to a standard FreeNAS jail.
(The reason is so that I can host my own private tracker - which qbittorrent supports and transmission does not)
Anyways, qbittorrent runs great but only when I manually run the command
in the jail shell. I've done some reading and attempted to implement a few autostart batch files from the Internet but I have been unsuccessful as I simply do not have the knowledge to set the code correctly and other commands.
My steps:
Paste the script listed here that a FreeNAS user suggested
I then set
To test I then run
but it does not work - the software will not autostart after restarting the jail. I can manually run the script but as soon as I close the shell window the service stops.
What do I need to change? What am I missing? I simply don't have the knowledge to make this work, your input would be very much appreciated.
(The reason is so that I can host my own private tracker - which qbittorrent supports and transmission does not)
Anyways, qbittorrent runs great but only when I manually run the command
Code:
$ qbittorrent-nox
My steps:
Code:
$ nano /etc/rc.d/qbit
Code:
#!/bin/sh
# File name 'qbit'
# Place this file into /etc/rc.d
# Edit /etc/rc.conf to include qbit_enable="YES"
. /etc/rc.subr
name="qbit"
rcvar=qbit_enable
PATH="$PATH:/usr/local/bin"
start_cmd="${name}_start"
stop_cmd=":"
load_rc_config $name
eval "${rcvar}=\${${rcvar}:-'NO'}"
qbit_start()
{
# And start up the service.
service minidlna start
done
}
run_rc_command "$1"
Code:
$ chmod 775 /etc/rc.d/qbit
$ nano /etc/rc.conf
qbit_enable="YES"
Code:
$ /etc/rc.d/qbit
What do I need to change? What am I missing? I simply don't have the knowledge to make this work, your input would be very much appreciated.