Clarkconnect 4.2 ~ SABnzbd Daemon
Posted: July 26th, 2008, 7:23 pm
Hi all,
I have installed SABnzbd following the directions exactly at http://sabnzbd.wikidot.com/install-cc42 (Only modification I made was to move the SABnzbd folder to /usr/local/src/
Now I am trying to run SABnzbd as a daemon so I don't need to have a terminal running all the time, I have tried following the instructions Unix Daemon instructions however I am receiving an error, I was hoping someone could have a look and tell me where im going wrong;
# /etc/init.d/SABnzbd #
#! /bin/sh
case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u root -H /usr/local/src/SABnzbd/SABnzbd.py -d -f /root/.sabnzbd/sabnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://0.0.0.0:8080/sabnzbd/api?mode=shutdown"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
This is the error when I try running /etc/init.d/SABnzbD
[root@gateway ~]# /etc/init.d/SABnzbD start
Starting SABnzbd.
/usr/bin/sudo: unable to exec /usr/local/src/SABnzbd/SABnzbd.py: No such file or directory
/root/.sabnzbd/sabnzbd.ini: line 1: __version__: command not found
/root/.sabnzbd/sabnzbd.ini: line 2: [misc]: command not found
/root/.sabnzbd/sabnzbd.ini: line 3: log_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 4: auto_browser: command not found
/root/.sabnzbd/sabnzbd.ini: line 5: permissions: command not found
/root/.sabnzbd/sabnzbd.ini: line 6: check_new_rel: command not found
/root/.sabnzbd/sabnzbd.ini: line 7: replace_spaces: command not found
/root/.sabnzbd/sabnzbd.ini: line 8: fail_on_crc: command not found
/root/.sabnzbd/sabnzbd.ini: line 9: enable_filejoin: command not found
/root/.sabnzbd/sabnzbd.ini: line 10: enable_unzip: command not found
/root/.sabnzbd/sabnzbd.ini: line 11: enable_unrar: command not found
/root/.sabnzbd/sabnzbd.ini: line 12: enable_par_cleanup: command not found
/root/.sabnzbd/sabnzbd.ini: line 13: par_option: command not found
/root/.sabnzbd/sabnzbd.ini: line 14: config_lock: command not found
/root/.sabnzbd/sabnzbd.ini: line 15: safe_postproc: command not found
/root/.sabnzbd/sabnzbd.ini: line 16: pause_on_post_processing: command not found
/root/.sabnzbd/sabnzbd.ini: line 17: cleanup_list: command not found
/root/.sabnzbd/sabnzbd.ini: line 18: ignore_samples: command not found
/root/.sabnzbd/sabnzbd.ini: line 19: send_group: command not found
/root/.sabnzbd/sabnzbd.ini: line 20: download_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 21: download_free: command not found
/root/.sabnzbd/sabnzbd.ini: line 22: complete_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 23: script_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 24: nzb_backup_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 25: cache_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 26: dirscan_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 27: dirscan_speed: command not found
/root/.sabnzbd/sabnzbd.ini: line 28: refresh_rate: command not found
/root/.sabnzbd/sabnzbd.ini: line 29: rss_rate: command not found
/root/.sabnzbd/sabnzbd.ini: line 30: bandwith_limit: command not found
/root/.sabnzbd/sabnzbd.ini: line 31: cache_limit: command not found
/root/.sabnzbd/sabnzbd.ini: line 32: email_server: command not found
/root/.sabnzbd/sabnzbd.ini: line 33: email_to: command not found
/root/.sabnzbd/sabnzbd.ini: line 34: email_from: command not found
/root/.sabnzbd/sabnzbd.ini: line 35: email_account: command not found
/root/.sabnzbd/sabnzbd.ini: line 36: email_pwd: command not found
/root/.sabnzbd/sabnzbd.ini: line 37: email_endjob: command not found
/root/.sabnzbd/sabnzbd.ini: line 38: email_full: command not found
/root/.sabnzbd/sabnzbd.ini: line 39: schedlines: command not found
/root/.sabnzbd/sabnzbd.ini: line 40: dirscan_opts: command not found
/root/.sabnzbd/sabnzbd.ini: line 41: dirscan_script: command not found
/root/.sabnzbd/sabnzbd.ini: line 42: top_only: command not found
/root/.sabnzbd/sabnzbd.ini: line 43: auto_sort: command not found
/root/.sabnzbd/sabnzbd.ini: line 44: enable_tv_sorting: command not found
/root/.sabnzbd/sabnzbd.ini: line 45: tv_sort_string: command not found
/root/.sabnzbd/sabnzbd.ini: line 46: web_color: command not found
/root/.sabnzbd/sabnzbd.ini: line 47: web_color2: command not found
Using domain server:
Name: 0.0.0.0
Address: 0.0.0.0#53
Aliases:
Host = not found: 3(NXDOMAIN)
/root/.sabnzbd/sabnzbd.ini: line 49: port: command not found
/root/.sabnzbd/sabnzbd.ini: line 50: web_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 51: web_dir2: command not found
/root/.sabnzbd/sabnzbd.ini: line 52: username: command not found
/root/.sabnzbd/sabnzbd.ini: line 53: password: command not found
/root/.sabnzbd/sabnzbd.ini: line 54: [logging]: command not found
/root/.sabnzbd/sabnzbd.ini: line 55: enable_cherrypy_logging: command not found
/root/.sabnzbd/sabnzbd.ini: line 56: log_level: command not found
/root/.sabnzbd/sabnzbd.ini: line 57: max_log_size: command not found
/root/.sabnzbd/sabnzbd.ini: line 58: log_backups: command not found
/root/.sabnzbd/sabnzbd.ini: line 59: [newzbin]: command not found
/root/.sabnzbd/sabnzbd.ini: line 60: username: command not found
/root/.sabnzbd/sabnzbd.ini: line 61: password: command not found
/root/.sabnzbd/sabnzbd.ini: line 62: bookmarks: command not found
/root/.sabnzbd/sabnzbd.ini: line 63: unbookmark: command not found
/root/.sabnzbd/sabnzbd.ini: line 64: bookmark_rate: command not found
/root/.sabnzbd/sabnzbd.ini: line 65: [servers]: command not found
/root/.sabnzbd/sabnzbd.ini: line 66: [[news.astraweb.com:119]]: command not found
The files are definately located in those folders, any help would be much appreciated.
I have installed SABnzbd following the directions exactly at http://sabnzbd.wikidot.com/install-cc42 (Only modification I made was to move the SABnzbd folder to /usr/local/src/
Now I am trying to run SABnzbd as a daemon so I don't need to have a terminal running all the time, I have tried following the instructions Unix Daemon instructions however I am receiving an error, I was hoping someone could have a look and tell me where im going wrong;
# /etc/init.d/SABnzbd #
#! /bin/sh
case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u root -H /usr/local/src/SABnzbd/SABnzbd.py -d -f /root/.sabnzbd/sabnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://0.0.0.0:8080/sabnzbd/api?mode=shutdown"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
This is the error when I try running /etc/init.d/SABnzbD
[root@gateway ~]# /etc/init.d/SABnzbD start
Starting SABnzbd.
/usr/bin/sudo: unable to exec /usr/local/src/SABnzbd/SABnzbd.py: No such file or directory
/root/.sabnzbd/sabnzbd.ini: line 1: __version__: command not found
/root/.sabnzbd/sabnzbd.ini: line 2: [misc]: command not found
/root/.sabnzbd/sabnzbd.ini: line 3: log_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 4: auto_browser: command not found
/root/.sabnzbd/sabnzbd.ini: line 5: permissions: command not found
/root/.sabnzbd/sabnzbd.ini: line 6: check_new_rel: command not found
/root/.sabnzbd/sabnzbd.ini: line 7: replace_spaces: command not found
/root/.sabnzbd/sabnzbd.ini: line 8: fail_on_crc: command not found
/root/.sabnzbd/sabnzbd.ini: line 9: enable_filejoin: command not found
/root/.sabnzbd/sabnzbd.ini: line 10: enable_unzip: command not found
/root/.sabnzbd/sabnzbd.ini: line 11: enable_unrar: command not found
/root/.sabnzbd/sabnzbd.ini: line 12: enable_par_cleanup: command not found
/root/.sabnzbd/sabnzbd.ini: line 13: par_option: command not found
/root/.sabnzbd/sabnzbd.ini: line 14: config_lock: command not found
/root/.sabnzbd/sabnzbd.ini: line 15: safe_postproc: command not found
/root/.sabnzbd/sabnzbd.ini: line 16: pause_on_post_processing: command not found
/root/.sabnzbd/sabnzbd.ini: line 17: cleanup_list: command not found
/root/.sabnzbd/sabnzbd.ini: line 18: ignore_samples: command not found
/root/.sabnzbd/sabnzbd.ini: line 19: send_group: command not found
/root/.sabnzbd/sabnzbd.ini: line 20: download_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 21: download_free: command not found
/root/.sabnzbd/sabnzbd.ini: line 22: complete_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 23: script_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 24: nzb_backup_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 25: cache_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 26: dirscan_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 27: dirscan_speed: command not found
/root/.sabnzbd/sabnzbd.ini: line 28: refresh_rate: command not found
/root/.sabnzbd/sabnzbd.ini: line 29: rss_rate: command not found
/root/.sabnzbd/sabnzbd.ini: line 30: bandwith_limit: command not found
/root/.sabnzbd/sabnzbd.ini: line 31: cache_limit: command not found
/root/.sabnzbd/sabnzbd.ini: line 32: email_server: command not found
/root/.sabnzbd/sabnzbd.ini: line 33: email_to: command not found
/root/.sabnzbd/sabnzbd.ini: line 34: email_from: command not found
/root/.sabnzbd/sabnzbd.ini: line 35: email_account: command not found
/root/.sabnzbd/sabnzbd.ini: line 36: email_pwd: command not found
/root/.sabnzbd/sabnzbd.ini: line 37: email_endjob: command not found
/root/.sabnzbd/sabnzbd.ini: line 38: email_full: command not found
/root/.sabnzbd/sabnzbd.ini: line 39: schedlines: command not found
/root/.sabnzbd/sabnzbd.ini: line 40: dirscan_opts: command not found
/root/.sabnzbd/sabnzbd.ini: line 41: dirscan_script: command not found
/root/.sabnzbd/sabnzbd.ini: line 42: top_only: command not found
/root/.sabnzbd/sabnzbd.ini: line 43: auto_sort: command not found
/root/.sabnzbd/sabnzbd.ini: line 44: enable_tv_sorting: command not found
/root/.sabnzbd/sabnzbd.ini: line 45: tv_sort_string: command not found
/root/.sabnzbd/sabnzbd.ini: line 46: web_color: command not found
/root/.sabnzbd/sabnzbd.ini: line 47: web_color2: command not found
Using domain server:
Name: 0.0.0.0
Address: 0.0.0.0#53
Aliases:
Host = not found: 3(NXDOMAIN)
/root/.sabnzbd/sabnzbd.ini: line 49: port: command not found
/root/.sabnzbd/sabnzbd.ini: line 50: web_dir: command not found
/root/.sabnzbd/sabnzbd.ini: line 51: web_dir2: command not found
/root/.sabnzbd/sabnzbd.ini: line 52: username: command not found
/root/.sabnzbd/sabnzbd.ini: line 53: password: command not found
/root/.sabnzbd/sabnzbd.ini: line 54: [logging]: command not found
/root/.sabnzbd/sabnzbd.ini: line 55: enable_cherrypy_logging: command not found
/root/.sabnzbd/sabnzbd.ini: line 56: log_level: command not found
/root/.sabnzbd/sabnzbd.ini: line 57: max_log_size: command not found
/root/.sabnzbd/sabnzbd.ini: line 58: log_backups: command not found
/root/.sabnzbd/sabnzbd.ini: line 59: [newzbin]: command not found
/root/.sabnzbd/sabnzbd.ini: line 60: username: command not found
/root/.sabnzbd/sabnzbd.ini: line 61: password: command not found
/root/.sabnzbd/sabnzbd.ini: line 62: bookmarks: command not found
/root/.sabnzbd/sabnzbd.ini: line 63: unbookmark: command not found
/root/.sabnzbd/sabnzbd.ini: line 64: bookmark_rate: command not found
/root/.sabnzbd/sabnzbd.ini: line 65: [servers]: command not found
/root/.sabnzbd/sabnzbd.ini: line 66: [[news.astraweb.com:119]]: command not found
The files are definately located in those folders, any help would be much appreciated.