Page 1 of 1

How to start sabnzbd after external drive mounts

Posted: May 16th, 2010, 12:58 am
by monmon_4
I think sabnzbd is starting before my external drive mounts when my system (xbmc live) starts up. So the download, watched, and incomplete folders all revert back to their default values because they can't find or create the folders on the external drive until it mounts.

I get this error:
2010-05-15 19:16:06,520::INFO::[misc:226] (['misc'], 'dirscan_dir') directory: /media/Revomon/watched does not exist, try to create it
2010-05-15 19:16:06,521::ERROR::[misc:228] #error-createDir# /media/Revomon/watched
Anyone know any possible workarounds or fixes? I'm a beginner with linux so I don't know how to code or implement anything that tells sabnzbd to start after my external drive mounts.

Thanks,
P

Re: How to start sabnzbd after external drive mounts

Posted: May 16th, 2010, 3:47 am
by shypike
This depends onĀ  how you start it.
Do you use the init.d system?
The trick is to have your startup script check for the presence of your
mounted drives.
It should only start SABnzbd when you see the "right" volume.

Re: How to start sabnzbd after external drive mounts

Posted: May 16th, 2010, 11:24 am
by monmon_4
I understand that the init.d system is located in /etc/init.d/ and I can place scripts in there to run commands but I'm still too early on in my linux knowledge to know how it's done. Do you have any solution I could copy/paste?

Re: How to start sabnzbd after external drive mounts

Posted: May 16th, 2010, 1:54 pm
by shypike
Better ask this question again on our Ubuntu/Debian board.
The package creator for Ubuntu answers questions there.

Re: How to start sabnzbd after external drive mounts

Posted: May 16th, 2010, 6:27 pm
by monmon_4
Nobody seems to be answering there and the posts move down to quickly before they need a bump.

Is there no script for such a problem?

Re: How to start sabnzbd after external drive mounts

Posted: May 17th, 2010, 1:56 am
by shypike
If you install the package, there's a script installed in init.d somewhere.
You can edit that.
I don't know more details.

Re: How to start sabnzbd after external drive mounts

Posted: May 17th, 2010, 10:58 am
by monmon_4
thanks. I'll post a solution when/if I figure it out.