rsync in cygwin as service

Nitin Agarwal nitin.agarwal at timesgroup.com
Wed Feb 12 00:40:58 EST 2003


Hi!
U can try the following way....

1) Make a directory called RSYNC and copy rsync.exe, supporting dll files
(cryptogrph-0.dll, cygwin1.dll), srvany.exe in this directory
2) now go to dos prompt .. (c:\rsync) and give command "instsrv "Rsync"
c:\rsync\srvany.exe"
3) this will install the service in win2k...
4) now u need to give all parameters in services in control panel...for running it
in daemon.

Nits.


Dmitry Melekhov wrote:

> Hello!
>
> I want to start  rsync on w2k as service.
>
> If I try to  start rsync from command line it simply do nothig:
>
> $ rsync --daemon
>
> Administrator at dm-w2ks /usr/bin
>
> $ ps
>        PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
>        480       1     480        480  con  500 04:15:03 /usr/bin/bash
>       1428     480    1428       1420  con  500 05:26:46 /usr/bin/ps
>
> Administrator at dm-w2ks /usr/bin
>
> So I'm trying to set it as service:
>
> C:\cygwin\bin>cygrunsrv -I "RSYNC" -d "Rsync" -p /bin/rsync.exe -a
> "--daemon --n
> o-detach"
>
> C:\cygwin\bin>cygrunsrv -S "RSYNC"
> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
> The service has not been started.
>
> And I see in event log:
>
> The description for Event ID ( 0 ) in Source ( RSYNC ) cannot be found.
> The local computer may not have the necessary registry information or
> message DLL files to display messages from a remote computer. The
> following information is part of the event: RSYNC : Win32 Process Id =
> 0x148 : Cygwin Process Id = 0x148 : starting service `RSYNC' failed:
> signal 11 raised.
>
> $ rsync --version
> rsync  version 2.5.5  protocol version 26
>
> Any ideas?
>
> Thank you!
>
> --
> To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html



More information about the rsync mailing list