How to autostart nzbget in jail

thimplicity

Dabbler
Joined
Jan 6, 2022
Messages
28
Hi everyone,
I am new to TrueNAS and installed nzbget into a jail without using the plugin. Unfortunately, I need to execute the command below now every time I restart the jail:

Code:
nzbget -D


I have searched in the forum, but have not found a solution proposal that works for me. With just installing the packages, there does not seem to be a service I can just start like proposed here. It would be great, if someone could point me in the right direction.

Thanks a lot!
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The answer is right there in your link...

if you installed the pkg, it's as simple as:

sysrc nzbget_enable='YES'

then

service nzbget start
 

thimplicity

Dabbler
Joined
Jan 6, 2022
Messages
28
I tried that but receive the following error message:

Code:
root@nzbget:~ # sysrc nzbget_enable='YES'
nzbget_enable: YES -> YES
root@nzbget:~ # service nzbget onestart
su: no directory
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Have you set the user for nzbget to use?

sysrc nzbget_user='some_user'
 
Top