I would like to use rsyncd server to launch a daemon as post-xfer exec command after the synchronization:
The problem is that even if the daemon is correctly launched, rsync is still hanging, and waiting interactively the daemon to be done.
Here is my rsyncd.conf file:
uid = 0 gid = 0 use chroot = yes hosts allow = 10.10.10.1 hosts deny = 0.0.0.0 [rules] path = /etc/blah post-xfer exec = /bin/bash /etc/blah/rollback.sh &
I have also tried forking on the rollback.sh; with same result: command hangs until post-xfer exec is completely done, and I want the daemon to be launched and the rsync command to terminate.
Is this possible to do such a thing, or do I misconfigure my rsync server?
Many thanks for helping!