DO NOT REPLY [Bug 7672] New: Ability to include (source) other files into the rsncd.conf configuration.

samba-bugs at samba.org samba-bugs at samba.org
Fri Sep 10 08:18:56 MDT 2010


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

           Summary: Ability to include (source) other files into the
                    rsncd.conf configuration.
           Product: rsync
           Version: 3.0.7
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: bdgregg at pitt.edu
         QAContact: rsync-qa at samba.org


Forgive me if this has been suggested before, but I didn't see this in the Bug
database.

Being that we use rsync to transfer web log files from each of our Apache
instances to our central web log server, it would be nice to be able to say use
an Include or Source statement in the main rsyncd.conf file which would
reference other subordinate rsyncd.conf files such as in the following example.
 This would allow us to individually modify each virtual instances rsyncd.conf
file separately but still maintain the main /etc/rsyncd.conf file.  This would
be similar to the Apache "Include" statement in their configuration files.  The
statements in the included files would be same that are used in the main
/etc/rsyncd.conf.  Preferably a quick validation check on the included file
would take place to ensure that it is syntactically correct before invoking it,
otherwise drop it from being included and log a message about it.  The format
of the "Include" can be changed to what ever you see fit as I see there is
already an 'include' stanza already present.  Maybe the use of "Source" would
be a better statement.  I believe that this would be of value to others that
are hosting a large number of systems that wish to dynamically wish to update
their main /etc/rsyncd.conf file but keep parts of the configuration separate.

I hope that you find this a fairly good addition to your software.

# Global
log file = /var/adm/rsyncd.log
pid file = /var/run/rsyncd.pid
use chroot = yes
uid = nobody
gid = nobody
max connections = 10
read only = yes
timeout = 60
transfer logging = yes

#Include external file
Include: /usr/local/apache/vhost1/rsyncd.conf
Include: /usr/local/apache/vhost2/rsyncd.conf
Include: /usr/local/apache/vhost3/rsyncd.conf
Source: /usr/local/apache/vhost4/rsyncd.conf
...

Thank you,
Brian Gregg
University of Pittsburgh
University Library System.
bdgregg at pitt.edu


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


More information about the rsync mailing list