I also have a question around how best to keep SAB updated because I havent been able to decipher the different methods people have spoken about with how Debian doesnt update traditionally.
I have installed via the following script: https://github.com/tteck/Proxmox/blob/m ... install.sh
I have modified the following in the sabnzbd.service file (note the port number change):
Code: Select all
service_path="/etc/systemd/system/sabnzbd.service"
echo "[Unit]
Description=SABnzbd
After=network.target
[Service]
WorkingDirectory=/opt/sabnzbd
ExecStart=python3 SABnzbd.py -s 0.0.0.0:5006
Restart=always
User=root
[Install]
WantedBy=multi-user.target" >$service_path
systemctl enable --now -q sabnzbd.service
So my logic was I need to get SAB to run as a user in that group, I ran the following commands to create a user
Code: Select all
sudo adduser sabnzbd
Code: Select all
sudo usermod -a -G media sabnzbd
Code: Select all
service_path="/etc/systemd/system/sabnzbd.service"
echo "[Unit]
Description=SABnzbd
After=network.target
[Service]
WorkingDirectory=/opt/sabnzbd
ExecStart=python3 SABnzbd.py -s 0.0.0.0:5006
Restart=always
User=sabnzbd
[Install]
WantedBy=multi-user.target" >$service_path
systemctl enable --now -q sabnzbd.service
Code: Select all
sudo chown sabnzbd:media /mnt/Data/Downloads/Complete/
sudo chown sabnzbd:media /mnt/Data/Downloads/Incomplete/
Code: Select all
ps au -C sabnzbd
Code: Select all
root@sab-n-arrs:/etc/systemd/system# ps au -C sabnzbd
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 247 0.0 0.0 2516 1536 pts/0 Ss+ 09:25 0:00 /sbin/agetty -o -p -- \u --noclear --keep-baud - 115200,38400,9600 linux
root 248 0.0 0.0 6120 3648 pts/1 Ss 09:25 0:00 /bin/login -p --
root 249 0.0 0.0 2516 1536 pts/2 Ss+ 09:25 0:00 /sbin/agetty -o -p -- \u --noclear - linux
root 567 0.0 0.0 6800 4992 pts/1 S 09:25 0:00 -bash
root 1868 0.0 0.0 8100 4224 pts/1 R+ 10:13 0:00 ps au -C sabnzbd
Am I going about this all wrong? I just need my 'arrs to be able have complete access to read/write to the completed and incomplete download directories.