Hello, i post before, but i think mods erase my topic
im using opnewrt in router and im very interested to use rtorrent with rutorrent.
I have setup lighttpd server with rutorrent and everything runs good but i like to run my rtorrent in daemon mode.
I have used different scripts but is impossible to autoboot rtorrent at startup of router.
The best i did is this script
Now im using this script in /etc/init.d/rtorrent
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=99
start() {
start-stop-daemon -S -u root -n rtorrent -x /usr/bin/dtach -- -n /tmp/rtorrent.dtach rtorrent
}
stop() {
killall rtorrent
}
it boot in startup, i see tmp "ls /tmp" and dtach file is ok but if i run dtach -a /tmp/rtorrent.dtach the rtorrent do not have anything on it and rutorrent do not recognize the open rtorrent... but if i kill it and command /etc/init.d/rtorrent without reboot it runs fine
The process is in LUCI startup web page but i can not start them. i click on start, or stop but nothing happens, enable is ok
Can you help me please?
im using opnewrt in router and im very interested to use rtorrent with rutorrent.
I have setup lighttpd server with rutorrent and everything runs good but i like to run my rtorrent in daemon mode.
I have used different scripts but is impossible to autoboot rtorrent at startup of router.
The best i did is this script
Now im using this script in /etc/init.d/rtorrent
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
START=99
start() {
start-stop-daemon -S -u root -n rtorrent -x /usr/bin/dtach -- -n /tmp/rtorrent.dtach rtorrent
}
stop() {
killall rtorrent
}
it boot in startup, i see tmp "ls /tmp" and dtach file is ok but if i run dtach -a /tmp/rtorrent.dtach the rtorrent do not have anything on it and rutorrent do not recognize the open rtorrent... but if i kill it and command /etc/init.d/rtorrent without reboot it runs fine
The process is in LUCI startup web page but i can not start them. i click on start, or stop but nothing happens, enable is ok
Can you help me please?