soulofmusic
Active Member
Need help from Linux/Unix Experts!
I have been using my Seagate Home NAS to run torrent client independent of PC
But the problem is, everytime the NAS is rebooted, it starts showing rpc whitelist error. I have to stop the transmission daemon. update the settings.json (add the IP) and restart the transmission daemon.
I have been struggling to find a solution, so I came up with a workaround of keeping a settings1.json with required changes ready and copying it to settings.json everytime the nas reboot.
Now I have written a shell script to do this job
=================================================
sudo /etc/init.d/transmission-daemon stop
cp /home/justluvliv/GoFlex\ Home\ Public/Torrent/settings1.json /home/justluvliv/GoFlex\ Home\ Public/Torrent/settings.json
sudo /etc/init.d/transmission-daemon start
=================================================
This shell scripts works well from command line, but I want to call this script at time of boot, so I added this to rc.local. But it doesnt work. I even tried with rc3.d and rc6.d combination. Also tried adding the bash, but no luck.
Experts please help.
I have been using my Seagate Home NAS to run torrent client independent of PC
But the problem is, everytime the NAS is rebooted, it starts showing rpc whitelist error. I have to stop the transmission daemon. update the settings.json (add the IP) and restart the transmission daemon.
I have been struggling to find a solution, so I came up with a workaround of keeping a settings1.json with required changes ready and copying it to settings.json everytime the nas reboot.
Now I have written a shell script to do this job
=================================================
sudo /etc/init.d/transmission-daemon stop
cp /home/justluvliv/GoFlex\ Home\ Public/Torrent/settings1.json /home/justluvliv/GoFlex\ Home\ Public/Torrent/settings.json
sudo /etc/init.d/transmission-daemon start
=================================================
This shell scripts works well from command line, but I want to call this script at time of boot, so I added this to rc.local. But it doesnt work. I even tried with rc3.d and rc6.d combination. Also tried adding the bash, but no luck.
Experts please help.