Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601792 - net-misc/rsync-3.1.2 request for rsyncd.socket file for systemd socket activation
Summary: net-misc/rsync-3.1.2 request for rsyncd.socket file for systemd socket activa...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-06 08:40 UTC by Michael Jones
Modified: 2021-05-14 06:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
rsync-3.1.2.ebuild.patch (rsync-3.1.2.ebuild.patch,791 bytes, patch)
2017-04-10 14:14 UTC, christos kotsis
Details | Diff
rsyncd@.service (rsyncd@.service,196 bytes, patch)
2017-04-10 14:15 UTC, christos kotsis
Details | Diff
rsyncd.socket (rsyncd.socket,161 bytes, patch)
2017-04-10 14:15 UTC, christos kotsis
Details | Diff
rsync-3.1.2.ebuild.patch (rsync-3.1.2.ebuild.patch,1021 bytes, patch)
2017-04-10 15:02 UTC, christos kotsis
Details | Diff
rsync-3.1.2.ebuild.patch (rsync-3.1.2.ebuild.patch,985 bytes, patch)
2017-04-10 15:51 UTC, christos kotsis
Details | Diff
rsyncd-service (rsyncd-service,196 bytes, patch)
2017-04-10 16:37 UTC, christos kotsis
Details | Diff
rsync-3.1.2.ebuild.patch (rsync-3.1.2.ebuild.patch,983 bytes, patch)
2017-04-10 16:38 UTC, christos kotsis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jones 2016-12-06 08:40:50 UTC
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
Comment 1 christos kotsis 2017-04-10 14:14:41 UTC
Created attachment 469588 [details, diff]
rsync-3.1.2.ebuild.patch
Comment 2 christos kotsis 2017-04-10 14:15:24 UTC
Created attachment 469590 [details, diff]
rsyncd@.service
Comment 3 christos kotsis 2017-04-10 14:15:59 UTC
Created attachment 469592 [details, diff]
rsyncd.socket
Comment 4 christos kotsis 2017-04-10 15:02:10 UTC
Created attachment 469596 [details, diff]
rsync-3.1.2.ebuild.patch
Comment 5 christos kotsis 2017-04-10 15:51:37 UTC
Created attachment 469600 [details, diff]
rsync-3.1.2.ebuild.patch
Comment 6 christos kotsis 2017-04-10 16:37:02 UTC
Created attachment 469602 [details, diff]
rsyncd-service
Comment 7 christos kotsis 2017-04-10 16:38:54 UTC
Created attachment 469604 [details, diff]
rsync-3.1.2.ebuild.patch
Comment 8 Michael Jones 2017-04-25 21:16:25 UTC
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


?
Comment 9 Michael Jones 2021-05-14 06:07:48 UTC
Any maintainers feel like picking up the provided patch?

It's been quite a long time since I opened this issue.