starting daemon from ssh

Jon Drukman jsd at cluttered.com
Thu Apr 28 17:57:11 GMT 2005


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

i'm assuming since "ssh host command" doesn't create a tty that rsync 
gets confused and thinks it is already daemonized.

is there any workaround or do i have to just bite the bullet and do this 
the nasty way.

-jsd-



More information about the rsync mailing list