starting daemon from ssh
jsd at cluttered.com
Thu Apr 28 19:01:29 GMT 2005
Jon Drukman wrote:
> This may seem odd, but I'm trying to start rsync in daemon mode from an
> ssh connection... ie, something like this:
> ssh host1 /usr/bin/rsync --daemon --port=9999 --config=/path/to/config.txt
> the reason why is i need to start it on 40 machines and manually logging
> into each one is a pain. even with copying and pasting. i'd rather
> just write a shell script to do it in a loop.
> anyway it doesn't work. it just prints
> @RSYNCD: 26
turned out to be an ssh question more than an rsync question. just do
ssh -t host rsync --daemon
forces ssh to allocate a pseudotty so rsync has something to detach from.
hope this helps somebody out.
More information about the rsync