DO NOT REPLY [Bug 4303] New: pre-xfer exec prevents output redirection of invoked commands

samba-bugs at samba-bugs at
Thu Dec 21 11:13:36 GMT 2006

           Summary: pre-xfer exec prevents output redirection of invoked
           Product: rsync
           Version: 2.6.9
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: koen.vereeken at
         QAContact: rsync-qa at

In my rsyncd.conf I have a pre-xfer exec defined:
        comment = full backup
        pre-xfer exec = sh /etc/ntc/invoke_trigger backup all
        max connections = 1
        path = /var/lib/systemimager/backup
        read only = true
        use chroot = true
        list = true
        dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz

the invoke_trigger script will trigger machines by using an ssh connection:
ssh -qi privatekey -o StrictHostKeyChecking=no -l sshuser server1 backup >
ssh -qi privatekey -o StrictHostKeyChecking=no -l sshuser server2 backup

the backup command is a script that will be executed on the corresponding
When the backup script generates output to stdout, it won't be catched by the
ssh in the invoke_trigger script. Also, the ssh connection to server1 and
server2 won't be closed, so that the invoke_trigger script waits forever on the
first command.

When i manually execute the invoke_trigger script, it all works perfect.
I guess rsync prevents output redirection on forks or something..

Is there a way to start the rsync daemon so that this works?
Has it anything to do in the way the rsync daemon starts?
(I start it on bash: rsync --daemon --config=/etc/rsyncd.conf)

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list