root@OpenWrt:~# cat /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
transmission-daemon -g /mnt/sda1/transmission-daemon
exit 0
But everytime transmission-daemon initializes with a "?" attached to the right configDIR as below:
root@OpenWrt:/mnt/sda1# ls -al | grep transmission-
drwxrwxrwx 5 root root 4096 Feb 26 18:52 transmission-daemon
drwxrwxrwx 5 root root 4096 Feb 26 19:11 transmission-daemon?
The result is that transmission-daemon failed to load right configuration.When I try to log in transmission-web.It gives me 403 errors.
But maually start with typing "transmission-daemon -g /mnt/sda1/transmission-daemon" is ok.
rb07 wrote:Have you checked with "vi -b" or a plain "od -c" ?
The editor vi doesn't show \r usually, and doesn't automatically correct DOS format files.
I think is not that case.rc.local is gernerate by linux system itself.Format must be suitable,and I use vi to alter won't change format.
So in other words, you didn't check?
Anyway, this one has me stumped. I don't see anything in libtransmission that would account for that questionmark. It's possible that your OS is adding it as a warning to tell you something that's not right in the script, or with the /mount location when the script is run, but that's just a wild guess.
It's odd that things work when you run them by hand but not by the init script. You may want to ask the dd-wrt forums to look at your init script.