what version of deluge are you using?tstack77 wrote:Thanks, that's what I thought too. The only reason I was asking is because after the webui didn't start with the scripts, I tried it manually from the command line. When I start 'deluged' and 'deluge -u web', I still cannot access the webui. I am asked for the password but then it displays that it is 'Not connected to a Daemon'. When I try to connect I get the Connection refused error.
Any ideas where I went wrong?
Howto: testing 0.6 using deluged + webui (headless *nix)
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
Latest (1.0.7-1) on an Intrepid server.
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
does show deluged running?
if it does try running deluged with logging:
and then paste the log here.
Code: Select all
ps aux | grep deluge
if it does try running deluged with logging:
Code: Select all
deluged -L debug -l <log name>
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
~$ ps aux | grep deluge
stack 5445 0.0 0.0 3236 792 pts/0 R+ 23:13 0:00 grep deluge
I'm not sure what the <log name> is supposed to be on the second command.
I'm thinking that I'm getting a little screwed up on all the different webui/daemon ports.
Daemon Port (www)
Connection Manager port (localhost:xxx)
Router's external/internal port (yyy/zzz)
www=
xxx=
yyy=
zzz=8112
stack 5445 0.0 0.0 3236 792 pts/0 R+ 23:13 0:00 grep deluge
I'm not sure what the <log name> is supposed to be on the second command.
I'm thinking that I'm getting a little screwed up on all the different webui/daemon ports.
Daemon Port (www)
Connection Manager port (localhost:xxx)
Router's external/internal port (yyy/zzz)
www=
xxx=
yyy=
zzz=8112
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
was that after you had run deluged?
the "ps aux" thing was to see if deluged was actually running.
you should port forward the web ui's port (i.e. 8112) but not the daemon's (i.e. 58846).
the <log name> was where you should put a name for the log (maybe deluged_log.txt).
you can also run deluged -d and it will log to console.
the "ps aux" thing was to see if deluged was actually running.
you should port forward the web ui's port (i.e. 8112) but not the daemon's (i.e. 58846).
the <log name> was where you should put a name for the log (maybe deluged_log.txt).
you can also run deluged -d and it will log to console.
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
EDIT: Got it working with johnnyg's help (thanks again).
Don't be like me and forget to ADD your username to:
# The init.d script will only run if this variable non-empty.
DELUGED_USER="deluge"
**********************************************************************************
Ok, that's how I had it where both the Daemon and the connection manager ports were the same. I changed it around a few times and wasn't sure if I screwed the pooch.
And no, that was the first command I entered after a reboot. Here is for after though:
~$ deluged
~$ ps aux | grep deluge
stack 5445 2.6 1.1 52180 11448 ? Sl Dec19 0:00 /usr/bin/python
2.5 /usr/bin/deluged
stack 5531 0.0 0.0 3236 796 pts/0 R+ 00:00 0:00 grep deluge
~$ deluged -L debug -l deluge_log.txt
Usage: deluged [options] [actions]
deluged: error: no such option: -L
Doesn't look like this is much help so I killed deluged and reran deluged -d
~$ deluged -d
Thanks for all the help!
Don't be like me and forget to ADD your username to:
# The init.d script will only run if this variable non-empty.
DELUGED_USER="deluge"
**********************************************************************************
Ok, that's how I had it where both the Daemon and the connection manager ports were the same. I changed it around a few times and wasn't sure if I screwed the pooch.
And no, that was the first command I entered after a reboot. Here is for after though:
~$ deluged
~$ ps aux | grep deluge
stack 5445 2.6 1.1 52180 11448 ? Sl Dec19 0:00 /usr/bin/python
2.5 /usr/bin/deluged
stack 5531 0.0 0.0 3236 796 pts/0 R+ 00:00 0:00 grep deluge
~$ deluged -L debug -l deluge_log.txt
Usage: deluged [options] [actions]
deluged: error: no such option: -L
Doesn't look like this is much help so I killed deluged and reran deluged -d
~$ deluged -d
Code: Select all
[DEBUG ] 00:03:45 configmanager:36 ConfigManager started..
[INFO ] 00:03:45 daemon:36 Deluge daemon 1.0.7
[DEBUG ] 00:03:45 daemon:37 options: {'logfile': None, 'config': None, 'port': None, 'donot': True}
[DEBUG ] 00:03:45 daemon:38 args: []
[DEBUG ] 00:03:45 configmanager:61 get_config_dir: /home/stack/.config/deluge
[DEBUG ] 00:03:45 configmanager:61 get_config_dir: /home/stack/.config/deluge
[DEBUG ] 00:03:45 configmanager:61 get_config_dir: /home/stack/.config/deluge
[DEBUG ] 00:03:45 core:122 Core init..
[DEBUG ] 00:03:45 component:94 Registered Core with ComponentRegistry..
[DEBUG ] 00:03:45 configmanager:80 Getting config 'core.conf'
[DEBUG ] 00:03:45 config:39 Config created with filename: core.conf
[DEBUG ] 00:03:45 config:40 Config defaults: {'info_sent': 0.0, 'lsd': True, 'max_download_speed': -1.0, 'send_info': False, 'torrentfiles_location': '/home/stack', 'state_location': '/home/stack/.config/deluge/state', 'stop_seed_at_ratio': False, 'max_active_limit': 8, 'enc_in_policy': 1, 'queue_new_to_top': False, 'ignore_limits_on_local_network': True, 'rate_limit_ip_overhead': True, 'daemon_port': 58846, 'natpmp': True, 'autoadd_enable': False, 'upnp': True, 'utpex': True, 'max_download_speed_per_torrent': -1, 'max_active_seeding': 5, 'allow_remote': False, 'max_half_open_connections': -1, 'enabled_plugins': [], 'plugins_location': '/home/stack/.config/deluge/plugins', 'download_location': '/home/stack', 'compact_allocation': False, 'max_upload_speed': -1.0, 'max_connections_global': 200, 'enc_prefer_rc4': True, 'listen_ports': [6881, 6891], 'dht': True, 'move_completed_path': '/home/stack', 'stop_seed_ratio': 2.0, 'max_active_downloading': 3, 'prioritize_first_last_pieces': False, 'max_upload_speed_per_torrent': -1, 'auto_managed': True, 'enc_level': 2, 'copy_torrent_file': False, 'max_connections_per_second': 20, 'max_connections_per_torrent': -1, 'move_completed': False, 'dont_count_slow_torrents': False, 'add_paused': False, 'max_upload_slots_per_torrent': -1, 'new_release_check': True, 'enc_out_policy': 1, 'seed_time_ratio_limit': 7.0, 'remove_seed_at_ratio': False, 'autoadd_location': '/home/stack', 'max_upload_slots_global': 4, 'config_location': '/home/stack/.config/deluge', 'seed_time_limit': 180, 'share_ratio_limit': 2.0, 'random_port': True}
[INFO ] 00:03:45 core:139 Starting XMLRPC server on port 58846
[DEBUG ] 00:03:45 core:203 Starting libtorrent session..
[DEBUG ] 00:03:45 config:162 Registering function for torrentfiles_location key..
[DEBUG ] 00:03:45 core:730 Unable to make directory: [Errno 17] File exists: '/media/Video/Deluge/Torrent Store'
[DEBUG ] 00:03:45 config:162 Registering function for state_location key..
[DEBUG ] 00:03:45 config:162 Registering function for listen_ports key..
[DEBUG ] 00:03:45 core:742 listen port range set to 56913-56913
[DEBUG ] 00:03:45 config:162 Registering function for random_port key..
[DEBUG ] 00:03:45 core:746 random port value set to False
[DEBUG ] 00:03:45 core:760 listen port range set to 56913-56913
[DEBUG ] 00:03:45 config:162 Registering function for dht key..
[DEBUG ] 00:03:45 core:764 dht value set to True
[DEBUG ] 00:03:45 config:162 Registering function for upnp key..
[DEBUG ] 00:03:45 core:774 upnp value set to True
[DEBUG ] 00:03:45 config:162 Registering function for natpmp key..
[DEBUG ] 00:03:45 core:781 natpmp value set to True
[DEBUG ] 00:03:45 config:162 Registering function for utpex key..
[DEBUG ] 00:03:45 core:795 utpex value set to True
[DEBUG ] 00:03:45 config:162 Registering function for lsd key..
[DEBUG ] 00:03:45 core:788 lsd value set to True
[DEBUG ] 00:03:45 config:162 Registering function for enc_in_policy key..
[DEBUG ] 00:03:45 core:800 encryption value enc_in_policy set to 1..
[DEBUG ] 00:03:45 core:814 encryption settings:
out_policy: enabled
in_policy: enabled
level: both
prefer_rc4: True
[DEBUG ] 00:03:45 config:162 Registering function for enc_out_policy key..
[DEBUG ] 00:03:45 core:800 encryption value enc_out_policy set to 1..
[DEBUG ] 00:03:45 core:814 encryption settings:
out_policy: enabled
in_policy: enabled
level: both
prefer_rc4: True
[DEBUG ] 00:03:45 config:162 Registering function for enc_level key..
[DEBUG ] 00:03:45 core:800 encryption value enc_level set to 2..
[DEBUG ] 00:03:45 core:814 encryption settings:
out_policy: enabled
in_policy: enabled
level: both
prefer_rc4: True
[DEBUG ] 00:03:45 config:162 Registering function for enc_prefer_rc4 key..
[DEBUG ] 00:03:45 core:800 encryption value enc_prefer_rc4 set to True..
[DEBUG ] 00:03:45 core:814 encryption settings:
out_policy: enabled
in_policy: enabled
level: both
prefer_rc4: True
[DEBUG ] 00:03:45 config:162 Registering function for max_connections_global key..
[DEBUG ] 00:03:45 core:817 max_connections_global set to 200..
[DEBUG ] 00:03:45 config:162 Registering function for max_upload_speed key..
[DEBUG ] 00:03:45 core:825 max_upload_speed set to 75.0..
[DEBUG ] 00:03:45 config:162 Registering function for max_download_speed key..
[DEBUG ] 00:03:45 core:830 max_download_speed set to -1.0..
[DEBUG ] 00:03:45 config:162 Registering function for max_upload_slots_global key..
[DEBUG ] 00:03:45 core:835 max_upload_slots_global set to 4..
[DEBUG ] 00:03:45 config:162 Registering function for max_half_open_connections key..
[DEBUG ] 00:03:45 config:162 Registering function for max_connections_per_second key..
[DEBUG ] 00:03:45 config:162 Registering function for ignore_limits_on_local_network key..
[DEBUG ] 00:03:45 config:162 Registering function for share_ratio_limit key..
[DEBUG ] 00:03:45 core:850 share_ratio_limit set to 2.0..
[DEBUG ] 00:03:45 config:162 Registering function for seed_time_ratio_limit key..
[DEBUG ] 00:03:45 core:855 seed_time_ratio_limit set to 7.0..
[DEBUG ] 00:03:45 config:162 Registering function for seed_time_limit key..
[DEBUG ] 00:03:45 core:860 seed_time_limit set to 100.0..
[DEBUG ] 00:03:45 config:162 Registering function for max_active_downloading key..
[DEBUG ] 00:03:45 core:866 max_active_downloading set to 3..
[DEBUG ] 00:03:45 core:867 active_downloads: 8
[DEBUG ] 00:03:45 config:162 Registering function for max_active_seeding key..
[DEBUG ] 00:03:45 core:872 max_active_seeding set to 3..
[DEBUG ] 00:03:45 core:873 active_seeds: 5
[DEBUG ] 00:03:45 config:162 Registering function for max_active_limit key..
[DEBUG ] 00:03:45 core:878 max_active_limit set to 4..
[DEBUG ] 00:03:45 core:879 active_limit: 15
[DEBUG ] 00:03:45 config:162 Registering function for dont_count_slow_torrents key..
[DEBUG ] 00:03:45 core:884 dont_count_slow_torrents set to False..
[DEBUG ] 00:03:45 config:162 Registering function for send_info key..
[DEBUG ] 00:03:45 core:889 Sending anonymous stats..
[DEBUG ] 00:03:45 config:162 Registering function for new_release_check key..
[DEBUG ] 00:03:45 config:162 Registering function for rate_limit_ip_overhead key..
[DEBUG ] 00:03:45 core:951 rate_limit_ip_overhead: True
[DEBUG ] 00:03:45 alertmanager:42 AlertManager initialized..
[DEBUG ] 00:03:45 component:94 Registered AlertManager with ComponentRegistry..
[DEBUG ] 00:03:45 component:94 Registered SignalManager with ComponentRegistry..
[DEBUG ] 00:03:45 component:94 Registered PluginManager with ComponentRegistry..
[DEBUG ] 00:03:45 pluginmanagerbase:40 Plugin manager init..
[DEBUG ] 00:03:45 configmanager:80 Getting config 'core.conf'
[DEBUG ] 00:03:45 configmanager:61 get_config_dir: /home/stack/.config/deluge
[DEBUG ] 00:03:45 pluginmanagerbase:87 Found plugin: Blocklist 1.0
[DEBUG ] 00:03:45 pluginmanagerbase:87 Found plugin: Label 0.1
[DEBUG ] 00:03:45 component:94 Registered TorrentManager with ComponentRegistry..
[DEBUG ] 00:03:45 torrentmanager:106 TorrentManager init..
[DEBUG ] 00:03:45 configmanager:80 Getting config 'core.conf'
[DEBUG ] 00:03:45 config:162 Registering function for max_connections_per_torrent key..
[DEBUG ] 00:03:45 torrentmanager:606 max_connections_per_torrent set to -1..
[DEBUG ] 00:03:45 config:162 Registering function for max_upload_slots_per_torrent key..
[DEBUG ] 00:03:45 torrentmanager:612 max_upload_slots_per_torrent set to -1..
[DEBUG ] 00:03:45 config:162 Registering function for max_upload_speed_per_torrent key..
[DEBUG ] 00:03:45 torrentmanager:617 max_upload_speed_per_torrent set to -1..
[DEBUG ] 00:03:45 config:162 Registering function for max_download_speed_per_torrent key..
[DEBUG ] 00:03:45 torrentmanager:622 max_download_speed_per_torrent set to -1..
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert torrent_finished_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert torrent_paused_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert torrent_checked_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert tracker_reply_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert tracker_announce_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert tracker_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert tracker_warning_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert tracker_error_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert storage_moved_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert torrent_resumed_alert
[DEBUG ] 00:03:45 alertmanager:76 Registered handler for alert state_changed_alert
[DEBUG ] 00:03:45 component:94 Registered AutoAdd with ComponentRegistry..
[DEBUG ] 00:03:45 configmanager:80 Getting config 'core.conf'
[DEBUG ] 00:03:45 config:162 Registering function for autoadd_enable key..
[DEBUG ] 00:03:45 autoadd:114 _on_autoadd_enable
[DEBUG ] 00:03:45 config:162 Registering function for autoadd_location key..
[DEBUG ] 00:03:45 autoadd:121 _on_autoadd_location
[DEBUG ] 00:03:45 component:117 Starting component PluginManager..
[DEBUG ] 00:03:45 corepluginbase:35 Registering export function export_download as blocklist_download
[DEBUG ] 00:03:45 corepluginbase:35 Registering export function export_get_config as blocklist_get_config
[DEBUG ] 00:03:45 corepluginbase:35 Registering export function export_get_status as blocklist_get_status
[DEBUG ] 00:03:45 corepluginbase:35 Registering export function export_import as blocklist_import
[DEBUG ] 00:03:45 corepluginbase:35 Registering export function export_set_config as blocklist_set_config
[DEBUG ] 00:03:45 corepluginbase:39 CorePlugin initialized..
[DEBUG ] 00:03:45 core:63 Blocklist: Plugin enabled..
[DEBUG ] 00:03:45 configmanager:80 Getting config 'blocklist.conf'
[DEBUG ] 00:03:45 config:39 Config created with filename: blocklist.conf
[DEBUG ] 00:03:45 config:40 Config defaults: {'check_after_days': 4, 'url': 'http://www.deluge-torrent.org/blocklist/pipfilter.dat.gz', 'try_times': 3, 'file_url': '', 'file_type': '', 'timeout': 180, 'file_size': 0, 'listtype': 'gzmule', 'load_on_start': False, 'file_date': ''}
[DEBUG ] 00:03:45 configmanager:61 get_config_dir: /home/stack/.config/deluge
[DEBUG ] 00:03:45 core:148 Reset IP Filter..
[DEBUG ] 00:03:45 configmanager:61 get_config_dir: /home/stack/.config/deluge
[DEBUG ] 00:03:45 text:100 Blocklist: PGZip: Wrong file type or corrupted blocklist file.
[DEBUG ] 00:03:45 core:162 Blocklist import starting..
[DEBUG ] 00:03:45 core:171 Blocklist import complete!
[INFO ] 00:03:45 pluginmanagerbase:110 Plugin Blocklist enabled..
[DEBUG ] 00:03:45 component:117 Starting component TorrentManager..
[DEBUG ] 00:03:45 configmanager:80 Getting config 'core.conf'
[DEBUG ] 00:03:45 torrentmanager:483 Opening torrent state file for load.
[WARNING ] 00:03:45 torrentmanager:498 Unable to update state file to a compatible version: list index out of range
[DEBUG ] 00:03:45 pluginmanager:139 run_post_session_load
[DEBUG ] 00:03:45 component:117 Starting component AutoAdd..
[DEBUG ] 00:03:45 component:117 Starting component AlertManager..
[DEBUG ] 00:03:45 component:117 Starting component SignalManager..
[DEBUG ] 00:03:45 component:117 Starting component Core..
Last edited by tstack77 on Sun Dec 21, 2008 3:22 am, edited 2 times in total.
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
would you be able to come onto irc: irc://irc.freenode.net/deluge ?
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
Hi,
I am setting up an init script for deluge 1.1.0 on Fedora 8. I want deluged and deluge -u web to start as services on boot.
My problem currently is that I can not seem to get the webui to start properly, because the init scripts hangs on this line:.
However, when I comment out the above line and start it without the daemon option, it works, but then the webui is run as root instead of the deluge user:.
Is there any way I can force the webui to daemonize itself, which would return control to the init script properly? If not, how would I run it as a non-root user?
Any insight is appreciated. Thanks.
Here is my simple init script:
I am setting up an init script for deluge 1.1.0 on Fedora 8. I want deluged and deluge -u web to start as services on boot.
My problem currently is that I can not seem to get the webui to start properly, because the init scripts hangs on this line:
Code: Select all
daemon --user=deluge deluge -u web -c /storage/fileshare/Torrents/.deluge/ -l /storage/fileshare/Torrents/.deluge/deluge-web.log
However, when I comment out the above line and start it without the daemon option, it works, but then the webui is run as root instead of the deluge user:
Code: Select all
deluge -u web -c /storage/fileshare/Torrents/.deluge/ -q &
Is there any way I can force the webui to daemonize itself, which would return control to the init script properly? If not, how would I run it as a non-root user?
Any insight is appreciated. Thanks.
Here is my simple init script:
Code: Select all
#!/bin/bash
# chkconfig: 345 85 15
# description: deluged is the Deulge bit torrent daemon. It performs downloads and manages torrents. Connect to the service through the configured port.
# Script to manage start and stopping the fedora service
# processname: deluged
# Source function library.
. /etc/init.d/functions
RETVAL=0;
start() {
echo "Starting deluged service"
daemon --user=deluge deluged -c /storage/fileshare/Torrents/.deluge/ -p 58846 -l /storage/fileshare/Torrents/.deluge/deluged.log
RETVAL1=$?
echo
[ $RETVAL1 = 0 ] && touch /var/lock/subsys/deluged
echo "Starting deluge webui"
#daemon --user=deluge deluge -u web -c /storage/fileshare/Torrents/.deluge/ -l /storage/fileshare/Torrents/.deluge/deluge-web.log
deluge -u web -c /storage/fileshare/Torrents/.deluge/ -q &
RETVAL2=$?
echo
[ $RETVAL2 = 0 ] && touch /var/lock/subsys/deluge-web
RETVAL=1
if [ $RETVAL1 == 0 ]; then
if [ $RETVAL2 == 0 ]; then
RETVAL=0
fi
fi
return $RETVAL
}
stop() {
echo "Stopping deluge webui"
killproc deluge
RETVAL1=$?
echo
[ $RETVAL1 = 0 ] && rm -f /var/lock/subsys/deluge-web
echo "Stopping deluged service"
killproc deluged
RETVAL2=$?
echo
[ $RETVAL2 = 0 ] && rm -f /var/lock/subsys/deluged
}
restart() {
stop
start
}
case $1 in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
status)
status deluged
status deluge
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
exit 1
esac
exit $RETVAL
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
I'd recommend using start-stop-daemon, it allows you to run programs as different users (i.e. not root) as well as having an option to force the program to run in the background.phantom wrote:Hi,
I am setting up an init script for deluge 1.1.0 on Fedora 8. I want deluged and deluge -u web to start as services on boot.
My problem currently is that I can not seem to get the webui to start properly, because the init scripts hangs on this line:.Code: Select all
daemon --user=deluge deluge -u web -c /storage/fileshare/Torrents/.deluge/ -l /storage/fileshare/Torrents/.deluge/deluge-web.log
However, when I comment out the above line and start it without the daemon option, it works, but then the webui is run as root instead of the deluge user:.Code: Select all
deluge -u web -c /storage/fileshare/Torrents/.deluge/ -q &
Is there any way I can force the webui to daemonize itself, which would return control to the init script properly? If not, how would I run it as a non-root user?
Any insight is appreciated. Thanks.
Here is my simple init script:Code: Select all
#!/bin/bash # chkconfig: 345 85 15 # description: deluged is the Deulge bit torrent daemon. It performs downloads and manages torrents. Connect to the service through the configured port. # Script to manage start and stopping the fedora service # processname: deluged # Source function library. . /etc/init.d/functions RETVAL=0; start() { echo "Starting deluged service" daemon --user=deluge deluged -c /storage/fileshare/Torrents/.deluge/ -p 58846 -l /storage/fileshare/Torrents/.deluge/deluged.log RETVAL1=$? echo [ $RETVAL1 = 0 ] && touch /var/lock/subsys/deluged echo "Starting deluge webui" #daemon --user=deluge deluge -u web -c /storage/fileshare/Torrents/.deluge/ -l /storage/fileshare/Torrents/.deluge/deluge-web.log deluge -u web -c /storage/fileshare/Torrents/.deluge/ -q & RETVAL2=$? echo [ $RETVAL2 = 0 ] && touch /var/lock/subsys/deluge-web RETVAL=1 if [ $RETVAL1 == 0 ]; then if [ $RETVAL2 == 0 ]; then RETVAL=0 fi fi return $RETVAL } stop() { echo "Stopping deluge webui" killproc deluge RETVAL1=$? echo [ $RETVAL1 = 0 ] && rm -f /var/lock/subsys/deluge-web echo "Stopping deluged service" killproc deluged RETVAL2=$? echo [ $RETVAL2 = 0 ] && rm -f /var/lock/subsys/deluged } restart() { stop start } case $1 in start) start ;; stop) stop ;; restart) restart ;; status) status deluged status deluge RETVAL=$? ;; *) echo $"Usage: $0 {start|stop|restart|status}" exit 1 esac exit $RETVAL
Re: Howto: testing 0.6 using deluged + webui (headless *nix)
It is my understanding that start-stop-daemon is not available in Fedora. If it is, I am unsure where it is located or how to install it. Thoughts?johnnyg wrote: I'd recommend using start-stop-daemon, it allows you to run programs as different users (i.e. not root) as well as having an option to force the program to run in the background.
Code: Select all
/etc/init.d/deluged: line 13: start-stop-daemon: command not found