Being able to launch the rsync daemon based on incoming socket activity would be a nice feature for system administrators that choose to use systemd. Fedora offers an illustrative rsyncd.socket file in their rsync package http://pkgs.fedoraproject.org/cgit/rpms/rsync.git/tree/rsyncd.socket?id=4f455260f4daf71946fd9a88f2356cb25399d642 [Unit] Description=Rsync Server Socket Conflicts=rsyncd.service [Socket] ListenStream=873 Accept=yes [Install] WantedBy=sockets.target
Created attachment 469588 [details, diff] rsync-3.1.2.ebuild.patch
Created attachment 469590 [details, diff] rsyncd@.service
Created attachment 469592 [details, diff] rsyncd.socket
Created attachment 469596 [details, diff] rsync-3.1.2.ebuild.patch
Created attachment 469600 [details, diff] rsync-3.1.2.ebuild.patch
Created attachment 469602 [details, diff] rsyncd-service
Created attachment 469604 [details, diff] rsync-3.1.2.ebuild.patch
Why + if [[ -e "/etc/systemd/system/" ]]; then + insinto /etc/ + insinto /etc/systemd/system/ + newins "${FILESDIR}"/rsyncd.socket rsyncd.socket + newins "${FILESDIR}"/rsyncd-service rsyncd@.service + else + dodir /etc/systemd/system/ + insinto /etc/ + insinto /etc/systemd/system/ + newins "${FILESDIR}"/rsyncd.socket rsyncd.socket + newins "${FILESDIR}"/rsyncd-service rsyncd@.service + fi When you could do + if [[ ! -e "/etc/systemd/system/" ]]; then + dodir /etc/systemd/system/ + fi + insinto /etc/systemd/system/ + newins "${FILESDIR}"/rsyncd.socket rsyncd.socket + newins "${FILESDIR}"/rsyncd-service rsyncd@.service ?
Any maintainers feel like picking up the provided patch? It's been quite a long time since I opened this issue.