Configuration: running on boot in Linux server


Recommended Posts

I've read different documents that talk about the config file but I haven't been able to see any information about setting things up so that BitTorrent Sync starts automatically whenever the server reboots.

Can anybody tell me how to do this or point me to documentation that explains how to do it?

Thanks

Link to comment
Share on other sites

Thanks Lightning for the quick response. I have one question about your script. From what I see you have to write the path to where your sync.pid lives. Would this be the same as the btsync binary? (I have it in /usr/bin). That's the same directory where the 'config.json' file (which I still haven't created) lives, right? Thanks again for your help.

JM

Link to comment
Share on other sites

By default the pid file is in the .sync directory in your user home dir.

I recommend you keep the config file, and all the automatically created stuff in one folder (i.e. the .sync).

BTW you don't need the pid file to start and stop the script. It's for the status command to check if it's running.

That could be improved a bit and then a restart command would be pretty simple too.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.