Unable to shutdown service, requires API key - CentOS Service

Feel free to talk about anything and everything in this board.
Post Reply
a18041967
Newbie
Newbie
Posts: 1
Joined: May 3rd, 2009, 4:01 am

Unable to shutdown service, requires API key - CentOS Service

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

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

Post 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.
Post Reply