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

samba-bugs at samba.org samba-bugs at samba.org
Sat Jun 4 13:00:14 MDT 2011


https://bugzilla.samba.org/show_bug.cgi?id=8188

Wayne Davison <wayned at samba.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
            Version|3.0.8                       |3.1.0
         Resolution|                            |FIXED

--- Comment #6 from Wayne Davison <wayned at samba.org> 2011-06-04 19:00:14 UTC ---
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

-- 
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