If you normally start btsync manually, you can easily make it start automatically on boot.
Say your normal command to start btsync was:
1 |
/opt/btsync —config /etc/btsync.conf |
Create a file in a location such as /opt/btsync.startup containing the above command.
Create a link to it in /etc/init.d
1 |
ln –s /opt/btsync.startup /etc/init.d/btsync |
This will allow you to start btsync using
1 |
sudo service btsync start |
Then, to make it automatically start, add it to a runlevel, e.g. for runlevel 2, which is where my Raspberry Pi seems to spend most of its time:
1 |
ln –s /etc/init.d/btsync /etc/rc2.d/S05btsync |