Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > configuring rsync daemon

configuring rsync daemon
Thread Tools
Junior Member
Join Date: May 2002
Status: Offline
Reply With Quote
Apr 20, 2003, 02:55 AM
 
I am trying to configure rsync to run as a daemon. I created an rsyncd.conf file but rsync does not start. I get the following error:
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-8/rsync/io.c(140)

Any ideas?
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Apr 22, 2003, 02:18 PM
 
How are you invoking rsync? Are you using the --daemon flag? Have you set it up as either a startup item, or configured inetd to invoke it? Are you sure you need it to run as a daemon? In most cases, it's not even necessary to set up a daemon (although this may have performance advantages if invoked often).

From man rsync:
Code:
--daemon This tells rsync that it is to run as a daemon. The daemon may be accessed using the host::module or rsync://host/module/ syntax. If standard input is a socket then rsync will assume that it is being run via inetd, otherwise it will detach from the current terminal and become a background daemon. The daemon will read the config file (/etc/rsyncd.conf) on each connect made by a client and respond to requests accordingly. See the rsyncd.conf(5) man page for more details.
     
patzoul  (op)
Junior Member
Join Date: May 2002
Status: Offline
Reply With Quote
Apr 23, 2003, 08:45 AM
 
I am invoking rsync with the command 'rsync localhost::' and I get the error messages mentioned above.
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
Apr 23, 2003, 05:57 PM
 
As i understand it, the command you're giving it is telling rsync to connect to a remote rsync server (in this case, on your own box), not start a local server. And since you've specified no files to transfer, it would close down right away, so the result you're getting seems appropriate under the circumstances.

If you want to start up a server, you need to use something like "rsync --daemon". At least that's my understanding; i could be wrong.
     
patzoul  (op)
Junior Member
Join Date: May 2002
Status: Offline
Reply With Quote
Apr 26, 2003, 05:58 AM
 
I got things working properly when I switched to ssh rather than rsh.

Thanks.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2