Influencer / UNplugged

Unraid Plugins
37 stars 16 forks source link

SABNZBD stop function not working #17

Open d1ode opened 11 years ago

d1ode commented 11 years ago

Whenever I try to stop the array or click on "stop" in the plugin settings it says: "/etc/rc.d/rc.sabnzbd stop" but then it disappears a few seconds later and never stops SABNZBD. It SHOULD read "Stopping SABnzbd..." next but it never does.

I went into the plugin code and commented out the first IF statement and it works now. My SABNZBD runs on port 8081. It seems the pid that is created is sabnzbd-9091.pid and that first IF statement is looking for sabnzbd-8081.pid. Since it doesn't find it, it just goes to the return and does nothing.

I'm not sure where the $PORT variable is being set but in the settings GUI it never seems to remember the correct port in there either. However, SABNZBD correctly runs on the port I want it to... 8081.