[Bug 8188] New: Mechanism for taking an rsync server down for maintenance
samba-bugs at samba.org
samba-bugs at samba.org
Mon May 30 16:11:54 MDT 2011
https://bugzilla.samba.org/show_bug.cgi?id=8188
Summary: Mechanism for taking an rsync server down for
maintenance
Product: rsync
Version: 3.0.8
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: core
AssignedTo: wayned at samba.org
ReportedBy: andrew-samba-bugzilla at andrew.net.au
QAContact: rsync-qa at samba.org
Hi,
I run a mirror, which provides content over rsync, amongst other protocols.
I'm looking for a nicer way to take the rsync component down when I need to
make the mirror unavailable for maintenance. Currently for Apache, I can put up
a server that returns a 503 HTTP response, for FTP, I can use ProFTPd's ftpshut
command, which puts a file in place that makes ProFTPd return 500 responses for
new connections.
To the best of my reading of the rsync source (start_daemon in clientserver.c),
there doesn't seem to be any such functionality for rsync. I currently have to
simply stop the rsync daemon, which doesn't convey a useful message to the
user.
I was thinking if for every new connection, the rsync daemon checked for the
existence of a file in /etc (perhaps /etc/rsync.shutdown?) and if this was
present, displayed the contents of the file to the remote user and closed the
connection.
>From my limited understanding of rsync, I presume this would require extending
the protocol to allow for sending such a message back to the remote client.
--
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