Install the program:
apt install nzbget
Place the config file on a location expected by the program (to prevent the startup error about a missing config file):
cp /usr/share/nzbget/webui/nzbget.conf /etc/
Change /etc/nzbget.conf file as such that the control webinterface can be reached from other computers computers:
# ControlIP=127.0.0.1
ControlIP=0.0.0.0
Create the user to run the service as:
adduser --disabled-password --gecos "nzbget" nzbget
Create /lib/systemd/system/nzbget.service file and fill it with:
[Unit]
Description=NZBGet Daemon
Documentation=http://nzbget.net/Documentation
After=network.target
[Service]
User=nzbget
Group=nzbget
Type=forking
ExecStart=/usr/bin/nzbget -D
ExecStop=/usr/bin/nzbget -Q
ExecReload=/usr/bin/nzbget -O
KillMode=process
Restart=on-failure
[Install]
WantedBy=multi-user.target
nzbget should be the user (and group) you want to run the service as.
/usr/bin/nzbget should be path to your nzbget binary.
Enable the service in systemd by issuing:
systemctl enable nzbget.service:
Start the service:
systemctl start nzbget.service
Check the service:
systemctl status nzbget.service
Use your browser of choice and browse to:
http://server-ip:6789/nzbgettegbzn6789