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

samba-bugs at samba.org samba-bugs at samba.org
Mon Jun 6 09:36:52 MDT 2011


--- Comment #8 from Brian K. White <brian at aljex.com> 2011-06-06 15:36:52 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

Sometimes, you ask for an inch, they give you a mile. ;)


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