How to start sabnzbd after external drive mounts

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
monmon_4
Newbie
Newbie
Posts: 6
Joined: May 12th, 2010, 10:26 pm

How to start sabnzbd after external drive mounts

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: How to start sabnzbd after external drive mounts

Post 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.
monmon_4
Newbie
Newbie
Posts: 6
Joined: May 12th, 2010, 10:26 pm

Re: How to start sabnzbd after external drive mounts

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: How to start sabnzbd after external drive mounts

Post by shypike »

Better ask this question again on our Ubuntu/Debian board.
The package creator for Ubuntu answers questions there.
monmon_4
Newbie
Newbie
Posts: 6
Joined: May 12th, 2010, 10:26 pm

Re: How to start sabnzbd after external drive mounts

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: How to start sabnzbd after external drive mounts

Post 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.
monmon_4
Newbie
Newbie
Posts: 6
Joined: May 12th, 2010, 10:26 pm

Re: How to start sabnzbd after external drive mounts

Post by monmon_4 »

thanks. I'll post a solution when/if I figure it out.
Post Reply