Page 1 of 1

Unable to shutdown service, requires API key - CentOS Service

Posted: May 3rd, 2009, 5:09 am
by a18041967
Having reviewed the various documents to create a linuxe service I'm experiencing two problems, the first being the shutdown script, I initiall used the following:

  /usr/bin/wget -q --delete-after "http://HOSTADDRESS:PORT/sabnzbd/api?mode=shutdown"

This did not work, so I've changed it to:

  /usr/bin/wget -q --delete-after "http://HOSTADDRESS:PORT/sabnzbd/shutdown?session="

This works but if I ever change my API then the script will fail, is this a know problem or am I doing something wrong.

Also I've install par2, and at the command promt its works, its installed in /usr/bin/par2 but SABnzbd 0.4.9 fails to find it, I've created a symbolic link in the /bin directory and all appears to be working. Yet again am I missing something?

Thanks for any help.

Re: Unable to shutdown service, requires API key - CentOS Service

Posted: May 8th, 2009, 1:59 pm
by shypike
a18041967 wrote: This works but if I ever change my API then the script will fail, is this a know problem or am I doing something wrong.
The key will not change unless you wipe the INI file or click the "Generate New Key" link in Config->General.
The idea is that the key is unique and known to you but not to outsiders.