Thanks for the quick response and link update! As I said, I’m not an experienced Linux user so I’m just figuring out the mounting part before I move to adding the “RequiresForMount” part to the systemd file. Will start trying that out tonight now that I’ve gotten an idea of what needs to be done from all your previous posts.
Here is the -l of the systemctl status…as you can see all due to the external USB drive not being mounted first:
osmc@osmc:~$ sudo systemctl -l status nzbget
- nzbget.service - NZBGet
Loaded: loaded (/etc/systemd/system/nzbget.service; enabled)
Active: inactive (dead) since Tue 2016-11-08 15:23:38 EST; 1min 25s ago
Process: 373 ExecStop=/opt/nzbget/nzbget -Q (code=exited, status=0/SUCCESS)
Process: 287 ExecStart=/opt/nzbget/nzbget -D (code=exited, status=0/SUCCESS)
Nov 08 15:23:37 osmc nzbget[287]: nzbget.conf(52): Invalid value for option “QueueDir” (/ media/My Passport/downloads/queue): could not create directory /media/My Passport: Permis sion denied
Nov 08 15:23:37 osmc nzbget[287]: nzbget.conf(46): Invalid value for option “NzbDir” (/me dia/My Passport/downloads/nzb): could not create directory /media/My Passport: Permission denied
Nov 08 15:23:38 osmc nzbget[373]: /media/My Passport/downloads/nzbget.log: No such file o r directory
Nov 08 15:23:38 osmc nzbget[373]: /media/My Passport/downloads/nzbget.log: No such file o r directory
Nov 08 15:23:38 osmc nzbget[373]: /media/My Passport/downloads/nzbget.log: No such file o r directory
Nov 08 15:23:38 osmc nzbget[373]: nzbget.conf(55): Invalid value for option “TempDir” (/m edia/My Passport/downloads/tmp): could not create directory /media/My Passport: Permissio n denied
Nov 08 15:23:38 osmc nzbget[373]: nzbget.conf(52): Invalid value for option “QueueDir” (/ media/My Passport/downloads/queue): could not create directory /media/My Passport: Permis sion denied
Nov 08 15:23:38 osmc nzbget[373]: nzbget.conf(46): Invalid value for option “NzbDir” (/me dia/My Passport/downloads/nzb): could not create directory /media/My Passport: Permission denied
Nov 08 15:23:38 osmc nzbget[373]: Unable to send request to nzbget-server at 127.0.0.1 (p ort 6789)
Nov 08 15:23:38 osmc systemd[1]: Started NZBGet.
This my current fstab…I haven’t yet tried mounting the USB drive there as I’m not 100% clear on the syntax and path just yet. Appears to only be the boot and main partitions on the microSD currently:
osmc@osmc:~$ cat /etc/fstab
/dev/mmcblk0p1 /boot vfat defaults,noatime 0 0
/dev/mmcblk0p2 / ext4 defaults,noatime 0 0
This is the USB drive that I assume I will have to mount in “fstab” so just trying to sort what the fstab syntax will be for this drive?:
sudo fdisk -l
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 975400959 975398912 465.1G 7 HPFS/NTFS/exFAT
This is the systemd file, and yes “nzbget” exists under the “/opt/nzbget” path…I haven’t added the “RequiresMountFor=” line yet as I wanted to work on getting the USB drive mounted first:
Edit: Sorry looks like the # is formatting the commented out parts of the file so I’ve added some “” around those lines for this webpage only (they don’t exist on my rPi)
osmc@osmc:~$ cat /etc/systemd/system/nzbget.service
[Unit]
Description=NZBGet
After=network.target
“#RequiresMountsFor=”
[Service]
User=osmc
Group=osmc
ExecStart=/opt/nzbget/nzbget -D
ExecStop=/opt/nzbget/nzbget -Q
“# process will demonize and parent return ok”
Type=forking
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
[Install]
“# Needed to run nzbget at boot”
WantedBy=multi-user.target
I’ll check out the Wiki for fstab you have in your guide and see if I can get the syntax right. If you know off hand of course I’d appreciate any tips you might have.
Thanks again!