[Bug 8188] Mechanism for taking an rsync server down for maintenance

samba-bugs at samba.org samba-bugs at samba.org
Sun Jun 5 10:24:02 MDT 2011


--- Comment #7 from Andrew Pollock <andrew-samba-bugzilla at andrew.net.au> 2011-06-05 16:24:01 UTC ---
(In reply to comment #6)
> I've committed a change to 3.1.0dev git that allows a pre-xfer exec script to
> send an error message to go with its non-zero exit status.  This will allow
> someone to tweak their rsyncd.conf file to add a global option like the
> following (assuming that they don't override pre-xfer exec elsewhere):
> pre-xfer exec = /usr/local/bin/output-rsyncd-downtime-message
> That script may output a message to stdout and then exit with a non-zero
> status.
> You could also choose to leave the pre-xfer exec configured, and make the
> script do your file-check:
> #!/bin/sh
> if [ -f /rsyncd.downtime ]; then
>     cat /rsyncd.downtime
>     exit 1
> fi

Sweet! Thanks!

Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the rsync mailing list