Torrserver jail FreeBSD/FreeNAS
Dark Sky#1 create a jail https://efim360.ru/dzheylyi-v-freenas-11/
#2 chroot to the jail
#3
pkg update
pkg install bash py37-supervisor wget
mkdir /opt/torrserver
wget -O /opt/torrserver/torrserver https://github.com/YouROK/TorrServer/releases/download/MatriX.83/TorrServer-freebsd-amd64
chmod +x /opt/torrserver/torrserver
#4
echo "supervisord_enable="YES" >> /etc/rc.conf
#5
ee /usr/local/etc/supervisord.conf
#add this lines and save file
[program:TorrServer]
command=/opt/torrserver/torrserver -d /opt/torrserver/ -p 8090
directory=/opt/torrserver
user=root
autostart=true
autorestart=true
stdout_logfile=NONE
stderr_logfile=NONE
; Handy for debugging:
; stdout_logfile=/var/log/supervisor/torrserver.stdout
; stderr_logfile=/var/log/supervisor/torrserver.stderr
#6 restart supervisor and check service
service supervisord restart
supervisorctl status (should show that TorrServer is running)