Selflogic

Run as a Service on MS Server 2008 r2 (how to)

Recommended Posts

How to Run BTsync as a service

I Verified this works on both

MS server 2008 r2

MS server 2012 r2

 

1. Install BTSync on the server

2. Set up the shares the way you want them

3. *Un*check the settings “Show notifications”

4. *Un*check the settings “Start BTsync when windows starts”

5.Download server 2003 resource kit from MS

http://www.microsoft.com/en-us/download/details.aspx?id=17657

6. Extract to a folder of your choosing on the server. I used “C:\SRL_service\”

post-35948-0-42910800-1382976619_thumb.p

7.From a cmd window

CD C:\SRL_service

InstSrv BTSync_SRL C:\SRL_service\srvany.exe

Close cmd window

8. Regedit.exe (Make a registry backup first)

                HKLM\System\CurrentControlSet\services\BTsync_SRL

                New Key Parameters

                New String Value inside Parameters

Name:”Application”

Value:”C:Programfiles(x86)\Bittorent Sync\btsync.exe”

post-35948-0-69762300-1382976455_thumb.p

9. Exit btsync manually in the OS if it’s running

10. Open Services window: Services.msc

find the service BTsync_SRL Properties

                Log on tab

                This Account .\Administrator

post-35948-0-01220500-1382976456_thumb.p

11. Start the service.

12. To test it Restart the server and do not log in to the server.

13. Check the active transfers from a different connected BTsync client. 

 

Note: If you need to manage btsync to add or remove a share.  You'll need to stop the service running and open it manually on the server, make the change, close it and then start the service again.

 

Hopefully they will add the run as a service feature soon, but untill then this hack works for me.

 

Good Luck.

Shaun

Share this post


Link to post
Share on other sites

Hi,

 

First, thanks a lot, is an excelente manual.

 

In the 1st point, is important to say, install btsync with the user that you will put en the "log on" tab on the service window in the 10th point.

 

Because, the configuration is per user, not for all in the machine.

 

Again, thanks a lot!

Share this post


Link to post
Share on other sites

That is a good option. Another option is to just set your Windows desktop or server to autologin with your user account (you can use microsoft/sysinternals "autologin" tool to set that up) and put a batch file in your user's startup folder to lock the screen. That's what I do because I have several other user specific programs I want to have up all the time without having to run as a service.

Share this post


Link to post
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.