rsync in cygwin as service

Dmitry Melekhov dm at belkam.com
Wed Feb 12 18:15:32 EST 2003


Craig Barratt wrote:
>>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"
> 
> 
> 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

Certanly, I tried --config....
Could you tell me which rsync version do you use?




More information about the rsync mailing list