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@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@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!
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@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@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
You should perhaps also mention that the tools you refer to are part of the Resource Kit and are not available as such in Windows. Kind regards, Bart Coninckx Network Administrator CNE, ASE ************************************* Sita ICT Services Lilsedijk 19 B-2340 Beerse Belgium e-mail: bart.coninckx@sita.be Tel: + 32 (0) 14 62 28 22 Fax: + 32 (0) 14 62 41 47 Nitin Agarwal <nitin.agarwal@timesgroup.com> To: Dmitry Melekhov <dm@belkam.com> Sent by: cc: rsync@lists.samba.org rsync-bounces+bart.coninckx=watco.be@lists Subject: Re: rsync in cygwin as service .samba.org 11/02/2003 14:40 Please respond to nitin.agarwal 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@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@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 error1062:> 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 -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Lapo Luchini
2003-Feb-12 02:42 UTC
/me dead for a short while [Was: rsync in cygwin as service]
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 --daemonSorry to you and other people that waits for me to test/debug cygwin-specific problems in latest rsync, but my windows machine is actually dead (it's the same CyberOne as seen 'long time offline' from http://build.samba.org/). I guess I must change CPU and/or MB so it will take a while. Sorry. In Italy we say something that sounds like "it always rains where it's already wet" =( Lapo
> If I try to start rsync from command line it simply do nothig: > > $ rsync --daemon > > Administrator@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@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"I've found on cygwin that I need to explicitly tell it where the config file is, both on the command line and with cygrunsrv. I haven't investigated; perhaps the platform default is some other file. These commands work for me: rsync --config=/etc/rsyncd.conf --daemon and cygrunsrv -I "RSYNC" -p /bin/rsync.exe -a '--config=/etc/rsyncd.conf --daemon --no-detach' Craig