Delete By: Nobody/Anonymous (nobody) - 2007-12-30 13:24
I am running sabnzbd 0.3.0rc4 on an nslu2. It only has 30 M of RAM , so swapping is inevitable. I am finding that the swap file grows over time, and the swap is not freed by pausing, only shutting down. [ it also doesnt free up when the downloads are complete, so perhaps a small memory leak].
The diffrence between 40M of swap and 60M seems to make a huge diffrence to my download speeds, ( I am only trying to use a 160KByte download, limited by my server). When the swap gets as big as 60M, then the web interface becomes unusably slow to refresh. I wanted to stop and restart sabnzbd SAFELY with a cron job, to clean out memory. whats the best way to do that ?
john
RE: Safe shutdown and restart ?
Delete By: rascalli (rascalli) - 2007-12-30 15:39
Just make a script that shutsdown every 1 hour, and then restart it again
To start is easy , but I have no idea where the shutdown command is hidden
RE: Safe shutdown and restart ?
Delete By: shypike (shypikeProject Admin) - 2007-12-30 23:34
Use the API commands. The easiest is to use the GNU wget program in a script.
I suggest:
wget http://localhost:PORT/sabnzbd/api?mode=pause
sleep 10
wget http://localhost:PORT/sabnzbd/api?mode=shutdown
sleep 30 (or longer, experiment)
# Now restart SAB
Good luck!


