It worked, but it was ugly. So I tried the init script posted today at the wiki with two minor modifications - the username was set to ‘nzb’ and the path to the datadir was manually set as ‘~nzb/’ as, for a reason I don’t understand, it did not derive the path from the username correctly. And it worked - almost. I can start, stop, restart and check the status of ND, but somehow, using the init script, ND can’t find its drone factory directory!
WTF? The directory exist, has the correct permissions, ND is running under the correct user, running with the same user and the same config but either from the commandline of from rc.local, ND has no problem finding this directory.
As far as I can tell, the script should work. Any idea why it does not?
Sounds like a permissions to me, I suggest double/triple checking its running as the correct user, but perhaps a more linux savvy user has an another idea.
The owner of the drone factory folder is that user, with full rights:
root@Server:/home/nzb# ls -l /mnt/storage/downloads/usenet/dst/ total 8 drwxrwx--- 18 nzb downloads 4096 Apr 26 00:06 Movies drwxrwx--- 58 nzb downloads 4096 Apr 25 11:24 TV
Besides, when running ND from the rc.local, with the under the same user, the problem disappears. The only difference I can see is that using the init script, ND does not run under a shell.
No problem there. I created a new series folder with the same permissions as all the other series and ND was able to add it when I started it from the init script. It resides on the same partition and mount point as the drone factory folder.