upcboy

[Now Implemented!] Btsync As A Windows Service

Recommended Posts

One thing I'd like to request is for Sync app to run as a service as it is on my server I must be logged in for files to sync. If this ran as a service and synced with my other Headless linux server that would be amazing.

Share this post


Link to post
Share on other sites

my "work around" right now is to have my Windows server to auto login the Lock the server using

rundll32.exe user32.dll, LockWorkStation

in a batch file on start up. it "works" for now.

Share this post


Link to post
Share on other sites

I tried creating a Windows service using the following, but it failed to start.


sc create btsync binPath= "C:\Program Files (x86)\BitTorrent Sync\BTSync.exe" DisplayName= "BitTorrent Sync" start= auto

Any ideas?

Share this post


Link to post
Share on other sites

The BitTorrent Sync website lacks some important information. Does the Windows version of BitTorrent Sync run as a Windows service that works no matter whether users are logged in? If not, that is another wish I would like fulfilled please. It is also very important that Sync cannot only do its job when no one is logged in, but it must also do it for multiple users even if one or more are logged in. An example for the importance of this is that I would like to have each user's personal laptop sync'ing to her personal home folders on a common desktop computer.

Share this post


Link to post
Share on other sites

We got report from user, that he was able to start Sync as service on Windows Server 2008 R2 using following instructions.

http://support.microsoft.com/kb/137890

This is not generic case, but might help you.

Instructions:

1. Copy instsrv.exe & srvany.exe to C:\Program Files (x86)\BitTorrent Sync, you should get these files from Windows NT Resource Kit

2. In Command Line from Administrator execute following:

cd C:\Program Files (x86)\BitTorrent Sync

instsrv BTSync “C:\Program Files (x86)\BitTorrent Sync\srvany.exe”

regedit

3. In regestry editor find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\BTSync

Create key: Parameters leave key:blank

Inside Parameters create new value (type REG_SZ): Application with value:

C:\Program Files (x86)\BitTorrent Sync\BTSync.exe

4. In application preferences make sure to unchek "Start application when Windows starts"

5. Close BTSync

6. From the Services applet in Control Panel find BTSync make sure that type is Automatic and inside

"Log On" tab enter your login and password.

7. Start BTSync service.

Please let us know if this solution will work.

Thanks to Ivan Nikitin. Original article in Russian http://ivannikitin.c...ittorrent-sync/

Share this post


Link to post
Share on other sites

ok, works fine on WHS 2011 (Windows Server 2008 R2).

Just something wrong in the HowTo :

Inside Parameters create new key value (Type REG_SZ) : Application with value:

C:\Program Files (x86)\BitTorrent Sync\BTSync.exe

Thanks !

Share this post


Link to post
Share on other sites

Inside Parameters create new key value (Type REG_SZ) : Application with value:

C:\Program Files (x86)\BitTorrent Sync\BTSync.exe

Thanks !

Done. Thanks.

Share this post


Link to post
Share on other sites

I've done all but when i start the service doesn't work :-(

I'm using Windows Server 2008 R2.

C:\>net start btsync

El servicio de BTSync está iniciándose.

El servicio de BTSync no ha podido iniciarse.

El servicio no informó de un error.

Puede obtener más ayuda con el comando NET HELPMSG 3534.

Share this post


Link to post
Share on other sites

Could you please check if you have any error message in event viewer?

1. right click my computer

2. click manage

3. goto: computer management -> systeme tools -> event viewer -> application

4. look for a Red X and type “error”, then make sure the “source” is the same service that you have trouble starting.

Share this post


Link to post
Share on other sites

Kos, will future builds of BitTorrent Sync provide the option to natively install/run as a service, or will the "workaround" method you outline in this post become the "official" way to install BitTorrent Sync as a service on Windows?

Share this post


Link to post
Share on other sites

I am not sure if this has been requested yet, but it would be nice if the sync client would stay connected after logging out of operating system.

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.