July 23, 201114 yr Hi there I was wondering if somebody could let me know how to make a Start/Stop User Script for Sabnzbd,SickBeard and CouchPotato. I would like one similar to the one you get with the transmission package. Thanks
July 23, 201114 yr This is what I used from this guide http://www.lime-technology.com/wiki/index.php?title=Install_Python_based_servers it's at the bottom This code can be placed in a file in the unmenu directory on the flash drive and used to start these services. Save it as a file called 10-unmenu_user_script_start_python. It will appear near the top on the User Scripts page in unMENU. Use a Unix friendly text editor to create this file. Midnight Commander (type mc at the command prompt) can be used to create or clean up the file. #define USER_SCRIPT_LABEL Start Python #define USER_SCRIPT_DESCR Start the Python Programs SAB, SickBeard and CouchPotato python /mnt/cache/.custom/sabnzbd/SABnzbd.py -d python /mnt/cache/.custom/sickbeard/SickBeard.py --daemon python /mnt/cache/.custom/couchpotato/CouchPotato.py -d This code can be placed in a file in the unmenu directory on the flash drive and used to stop these services. Save it as a file called 10-unmenu_user_script_stop_python. It will appear near the top on the User Scripts page in unMENU. Use a Unix friendly text editor to create this file. Midnight Commander (type mc at the command prompt) can be used to create or clean up the file. #define USER_SCRIPT_LABEL Stop Python #define USER_SCRIPT_DESCR Stop the Python Programs SAB, SickBeard and CouchPotato # # stop SAB wget -q --delete-after http://IP:8082/shutdown?session=API-Key # # stop SickBeard wget -q --delete-after http://IP:8081/home/shutdown/ # # Stop CouchPotato wget -q --delete-after http://IP:8083/config/exit/ I am sure you can make a single script for each one
July 29, 201114 yr Author bump can somebody if possible please make me the start/stop user scripts as I tried and they don't work. Thanks
July 29, 201114 yr They don't work for me either. SAB won't even restart/shutdown for me. Does it work for you?
July 29, 201114 yr You have to put the server IP address where the line says IP and put the API key for SAB where the line says API. You have to use a unix friendly editor. If you didn't, then logon to the server and type mc. Navigate to the flash drive and open the file. Then clear out any ^M or similar characters that don't belong and save it. Peter
July 29, 201114 yr What are some good unix friendly editors? I find it useful to edit when I'm telnet'ing in, so I use gfjardim's nano package: http://code.google.com/p/gfjardim/downloads/detail?name=nano-2.2.4-i486-unRAID.txz
Archived
This topic is now archived and is closed to further replies.