question about using rsync with inetd

Paul Slootman paul at
Fri Sep 10 11:35:30 GMT 2004

On Fri 10 Sep 2004, Kick Claus wrote:
> we would like to use rsync (2.6.2 manualy patched and recompiled) in daemon
> mode spawned by inetd (Solaris 5.8 Environment).

Hmm, I don't know whether this is supported...

> rsync stream tcp nowait publish /usr/bin/rsync rsyncd --daemon --port 1234 .

AFAIK using --daemon tells rsync to become a daemon, and to listen to
incoming connections (on port 1234 in this case) itself. This will fail
as inetd is already listening to that port, hence it's in use.
Inetd accepts the connection, and spawns the process with its stdin and
stdout connected to the network socket.

> is there an issue with rsync being called by inetd or are we missing
> something?

You'd have to let inetd start rsync with the same options as when rsync
is started by ssh, something with --server I guess. This isn't
documented though...

What are your reasons for letting inetd accept the connection instead of
having an rsync daemon?

Paul Slootman

More information about the rsync mailing list