Page 1 of 1
[Linux] download directories dont save
Posted: December 17th, 2009, 2:02 pm
by benharvey1985
hello, and thanks for taking the time to try and help me first things first my setup:
Version: 0.5.0Beta4
OS: Ubuntu Karmic
Install-type: Linux repository
every time i restart my pc the download folders change back to defaults ('/username/.sabnzbd/downloads')
i wish for them to be ('/media/sdc1/')
if i change them in config then restart the server they stay as i have set them, but only revert to defaults if i restart which leads me to believe sabnzbd loads before the drives are mounted correctly.
if anyone knows of a way to rectify this i would be greatful to hear it.
thanks in advance.
Re: [Linux] download directories dont save
Posted: December 17th, 2009, 3:39 pm
by shypike
How do you start SABnzbd?
If you run it in user mode, the administrative files are all inĀ $HOME/.sabnzbd and
the downloaded files in $HOME/downloads/incomplete (temporary)
and $HOME/downloads/complete (final).
The configuration file sabnzbd.ini is in the $HOME/.sabnzbd folder.
Make sure it's writable.
When you start it as a daemon, look at the package instructions to configure it properly.
We do not create the packages. However the maintainer of the package
has a thread in the General section, top item.
Re: [Linux] download directories dont save
Posted: December 18th, 2009, 5:49 am
by jcfp
benharvey1985 wrote:if i change them in config then restart the server they stay as i have set them, but only revert to defaults if i restart which leads me to believe sabnzbd loads before the drives are mounted correctly.
Logic dictates two possible fixes: mount the partitions timely (by adding them to /etc/fstab - google knows how), or delay the startup of sab until a certain condition is met (like a specific directory being available). The latter can be done as follows:
1. Disable the normal auto-startup:
Code: Select all
sudo update-rc.d sabnzbdplus stop 0 1 2 3 4 5 6 .
2. Create a file with a script like this (obviously, you should place it outside the directory you're testing for):
Code: Select all
while [ ! -d /YOUR/DIR/HERE ]; do sleep 10; done
/etc/init.d/sabnzbdplus start
3. Make things run on startup by adding a line to /etc/rc.local:
Code: Select all
/bin/sh /FULL/PATH/TO/YOUR/SCRIPT &
Re: [Linux] download directories dont save
Posted: December 18th, 2009, 6:32 pm
by benharvey1985
thanks for the quick replies, i shall try these suggestions and report back.
Re: [Linux] download directories dont save
Posted: December 21st, 2009, 4:24 am
by benharvey1985
i had to do a fresh install of 0.4.12 and managed to use a handy tool to mount them using fstab (took about 5 minutes) using "storage device manager" which i added using the command:
and then running it from
System > AdminĀ > Storage Device Manager
thank you shypike and jcfp for giving me some more ideas and helping me solve this.