This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cyrunsrv and rsync


I am trying to start rsync as a service.

I downloaded the latest cygwin package yesterday with the whole kit.
I also downloaded rsync-2.5.6.

I can run rsync as a daemon from the bash shell and it works exactly as expected.

However, when i use cygrunsrv to install the service it will start and then shutdown after a few seconds. I have tried various combinations of switches and parameters, the following is the one I believe should have worked and was also tried.

$ cygrunsrv -I rsyncd -d "RSYNC Daemon" -f "rsync file transfer service"  \
  -p /usr/bin/rsync  -a '--config=/etc/rsyncd.conf --daemon --no-detach'

I have also tried this variation:

$ cygrunsrv -I rsyncd -d "RSYNC Daemon" -f "rsync file transfer service" \
  -p /usr/bin/rsync  -a '--config=/etc/rsyncd.conf --server --no-detach' \
  -e CYGWIN='bin mode tty ntsec'

Many conbinations will fail to install or start at all. The above two will install the service and start it followed by a stop of the service. I have searched the mailing list and not seen this problem.

The event viewer says:

The description for Event ID ( 0 ) in Source ( rsyncd ) 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: rsyncd : PID 1488 : `rsyncd' service started.

Followed by (1 to 2 seconds later):

The description for Event ID ( 0 ) in Source ( rsyncd ) 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: rsyncd : PID 1488 : `rsyncd' service stopped.

Any helps, hints, etc. will be appreciated.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]