The samba configuration has support for including an external configuration file into the smb.conf file.
rsync does not support this functionality.
I'm requesting this functionality so rsync server configurations can be
modularly changed without having to edit the "main" file, by dropping other
config files into a directory and having the main config file reference them.
At some level this is just syntactic sugar: I could just combine all the
other files together at run time. But it would be convenient if rsync
provided the functionality natively.
See the CONFIG DIRECTIVES section of the rsyncd.conf manpage in 3.1.0. At work we use "&include /etc/rsyncd.d" inside a simple /etc/rsyncd.conf file so we can put whatever module-defining *.conf files we like inside that directory.
*** Bug 7672 has been marked as a duplicate of this bug. ***