First: if emerging gentoo-rsync-mirror i receive the following messages....: * RSYNC_OPTS=--config=/etc/rsync/rsyncd.conf needs * to be set in /etc/conf.d/rsyncd to make allow syncing. * * The service can be started using /etc/init.d/rsyncd start * If you are setting up an official mirror, don't forget to add In case i use systemd /etc/rsync/rsyncd.conf won't be read because rsync only reads /etc/rsyncd.conf. If i tell rsync to use an other config file all is fine So my solution for that problem was: create my own /etc/systemd/system/rsyncd.service (which should be generally the gentoo rsync definition): [Unit] Description=rsync daemon After=networking.target [Service] Type=simple EnvironmentFile=/etc/conf.d/rsyncd ExecStart=/usr/bin/rsync --daemon --no-detach ${RSYNC_OPTS} StandardOutput=syslog StandardError=syslog [Install] WantedBy=multi-user.target The Changes different from the original rsyncd.service are: EnvironmentFile=/etc/conf.d/rsyncd ExecStart=/usr/bin/rsync --daemon --no-detach ${RSYNC_OPTS} Conclusion: the same /etc/conf.d/rsyncd file will be used both in openrc and systemd Second: a dependency to net-misc/rsync whould be nice...so: if i install net-misc/rsync, net-misc/rsync installes too. with kind regards putty Reproducible: Always Steps to Reproduce: 1.emerge -s gentoo-rsync-mirror 2.customize /etc/conf.d/rsyncd as decribed 3.systemctl start rsyncd.service 4.see that rsync is not willing to use /etc/conf.d/rsyncd Actual Results: After adding my own /etc/systemd/system/rsyncd.service file, all is fine. Expected Results: the gentoo-rsync-mirror ebuild should include a seperate /etc/systemd/system/gentoo-rsyncd.service file and a hint in the emerge messages how to start it.
What do you want to supply at /etc/rsync/rsyncd.conf that cannot be added to /etc/rsyncd.conf?
In principle: nothing. The problem for me was: the emerge messages say: * RSYNC_OPTS=--config=/etc/rsync/rsyncd.conf needs * to be set in /etc/conf.d/rsyncd to make allow syncing. But the emerge message only is for non-systemd-system valid. For systemd-systems you might mention: (1) you need an extra rsyncd.service entry in /etc/sytemd/system like the one i supplied (2) you tell the user he should copy /etc/rsync/rsyncd.conf in to /etc/rsync.conf --> i think this is not the right way, because a new app-admin/gentoo-rsync-mirror release will overwrite app-admin/gentoo-rsync-mirror, but does not know that a copy is at /etc/rsync.conf. so i prever solution (1), with the advantage of using the "default" gentoo config directory /etc/conf.d Thorsten