upcboy

[Now Implemented!] Btsync As A Windows Service

Recommended Posts

+1   for making btSync available on Windows as a service.  

 

There shouldn't be a need for a workaround, especially when that workaround precludes your ability to interact with the GUI.

 

Appreciated

Share this post


Link to post
Share on other sites

love2scoot,

 

I used your method(except for the WebUI part) to sync files from multiple user accounts on multiple computers across my local network with a beta version of BTSync( I think it was 1.4X). I have recently updated my computers to Windows 10 and when doing so I decided to upgrade to the latest version of BTSync (2.1.1). However, I can not get it to run as a service.  It only runs when user is logged in and BTSync is running on the desktop.

 

Do you (or any one reading this) have any advice for getting it to run while user not logged in? 

 

Maybe run as scheduled task? Use an older version of BTSync? Another program that will do what I want?

Share this post


Link to post
Share on other sites

Reviving this thread since it seems as if a built in solution for runing BTSync as a service still is missing.

 

 

I need to start BTSync as a service on Windows Server 2008 where normally no user is loged in.

 

My plan is to use sc.exe (included in Windows) to create the service and as far as I understand the command should then be:

sc create BTSync binpath= "C:\Users\xxxxx\AppData\Roaming\BitTorrent Sync\BTSync.exe" start= auto

 

This creates the service but it is not started. When I try to start the service from the Windows "Services GUI" I get a message saying:

"Windows could not start the BTSync service on Local Computer.   Error 1053: ...."

 

I see that the service is run as "Local System" and not as my user.

The best way to solve this would be to get BTSync installed somewhere else than under %USERPROFILE% for example under Program Files so Local System can reach it but I haven't manage to do this. Does anyone knows if it is possible.

 

The other option seems to be to let the service log on as my user. I have supplied user name and password in the Log On Tab in the service properties but it still dosn't work. Same error as above.

Any ideas?

Share this post


Link to post
Share on other sites

I'm having the same problem you are. I know it used to work in beta, the beta version I was using  installed to program files instead of to each user.

Share this post


Link to post
Share on other sites

Quist, what version of BTSync are you trying to use?

 

Over the past couple of hours I've tried running multiple versions of BTSync as service using NSSM, the newest one I could get to work was 1.4.111. It's the newest beta version I could find. None of the 2.X versions I tried worked.

Share this post


Link to post
Share on other sites

I'm on 2.1.

Where is 1.4.111 installed, is it under program files?

My IT department will defenitely not like NSSM to be installed on the machine (hard enough with BTSync) since this is a corporate server so I hope to find a solution with sc.exe.

I will try with 1.4.111.

Thanx!

Share this post


Link to post
Share on other sites

Just realized that sc.exe doesn't work if the exe wasn't programmed to run as a service (which BTSync apparently isn't).

 

As has been explained early in this thread the trick is to use srvany.exe (found in the Windows Server 2003 resource kit on Microsofts homepage, it works also with newer versions of Windows)

 

Use "sc " to create a new service that launches "srvany " (e.g. sc create MyService binPath= C:\Windows\System32\srvany.exe DisplayName= "MyService" )

 

Using RegEdit : create a "Parameters " key for your service (e.g. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService\Paramaters\ )

 

Using RegEdit : within the newly created "Parameters " key , create a string value called "Application " and enter the full path to the BTSync application. (No quotes required.)

 

In the Service manager right click on your new service, choose properties and enter the user credentials for the user which BT Sync is installed under.

 

Start your service and cross your fingers!

Edited by Quist

Share this post


Link to post
Share on other sites

+1 for a running as a service - or at least being able to access the GUI using this workaround...

 

Our of curiosity, it has been over two and a half years since this feature was requested.  Is there some reason that this has not been incorporated into the software?

Share this post


Link to post
Share on other sites

Awwwwww... crap.

 

I just upgraded my computers to 2.2 and was feeling all happy until I realized my home server was not liking the change.  It is just running Win7 and I tried to do the workaround and start Sync with the Task Scheduler, but it does not seem to work.  Back here I came looking for the answer and I got a little lost. 

 

Can someone walk me through the work around for 2.2?  I think is has to do with the /config setup but I am not sure after that.

 

Thanks

Share this post


Link to post
Share on other sites

+1 on the Windows Service feature. I really need this.

 

I tried all the suggestions offered here for workarounds, and none of them worked out for me. However, I finally did get one workaround to succeed by using a paid program called AlwaysUp. Try that if nothing else works for you.

Share this post


Link to post
Share on other sites

Any chance of getting the equivalent for OS X?  I would love to be able to have my sync keep working even when I'm logged out.

 

It's a little dated, but please see the solution and/or consider discussing the topic further in this thread instead.

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.