[rsync/f19] Fixed #1018520 - missing rsyncd at .service
mluscon
mluscon at fedoraproject.org
Sun Oct 20 17:56:55 UTC 2013
commit f221804986052ee719c90d1c12bfdc0adc5ad97a
Author: Michal Luscon <mluscon at redhat.com>
Date: Sun Oct 20 19:54:38 2013 +0200
Fixed #1018520 - missing rsyncd at .service
rsync.spec | 9 ++++++++-
rsyncd at .service | 8 ++++++++
2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/rsync.spec b/rsync.spec
index 8d998da..346260f 100644
--- a/rsync.spec
+++ b/rsync.spec
@@ -7,7 +7,7 @@
Summary: A program for synchronizing files over a network
Name: rsync
Version: 3.0.9
-Release: 11%{?prerelease}%{?dist}
+Release: 12%{?prerelease}%{?dist}
Group: Applications/Internet
URL: http://rsync.samba.org/
@@ -17,6 +17,8 @@ Source2: rsyncd.socket
Source3: rsyncd.service
Source4: rsyncd.conf
Source5: rsyncd.sysconfig
+Source6: rsyncd at .service
+
BuildRequires: libacl-devel, libattr-devel, autoconf, popt-devel, zlib-devel, systemd-units
Requires: zlib
Requires(post): systemd-units
@@ -80,6 +82,7 @@ install -D -m644 %{SOURCE3} $RPM_BUILD_ROOT/%{_unitdir}/rsyncd.service
install -D -m644 %{SOURCE2} $RPM_BUILD_ROOT/%{_unitdir}/rsyncd.socket
install -D -m644 %{SOURCE4} $RPM_BUILD_ROOT/%{_sysconfdir}/rsyncd.conf
install -D -m644 %{SOURCE5} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/rsyncd
+install -D -m644 %{SOURCE6} $RPM_BUILD_ROOT/%{_unitdir}/rsyncd at .service
%clean
rm -rf $RPM_BUILD_ROOT
@@ -94,6 +97,7 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) %{_sysconfdir}/sysconfig/rsyncd
%{_unitdir}/rsyncd.socket
%{_unitdir}/rsyncd.service
+%{_unitdir}/rsyncd at .service
%post
%systemd_post rsyncd.service
@@ -105,6 +109,9 @@ rm -rf $RPM_BUILD_ROOT
%systemd_postun_with_restart rsyncd.service
%changelog
+* Sat Oct 20 2013 Michal Luscon <mluscon at redhat.com> - 3.0.9-12
+- Fixed #1018520 - missing rsyncd at .service
+
* Fri Jun 28 2013 Michal Luscon <mluscon at redhat.com> - 3.0.9-11
- Add BuildRequires: systemd-units
diff --git a/rsyncd at .service b/rsyncd at .service
new file mode 100644
index 0000000..89f9621
--- /dev/null
+++ b/rsyncd at .service
@@ -0,0 +1,8 @@
+[Unit]
+Description=fast remote file copy program daemon
+ConditionPathExists=/etc/rsyncd.conf
+
+[Service]
+EnvironmentFile=/etc/sysconfig/rsyncd
+ExecStart=/usr/bin/rsync --daemon --no-detach "$OPTIONS"
+StandardInput=socket
More information about the scm-commits
mailing list